Solved

FaceBook application problem

Posted on 2008-06-24
4
687 Views
Last Modified: 2013-11-13
Hi. I am writing a facebook app/extension for a website that i developed several months ago.

The facebook app is:
http://apps.facebook.com/bookdeal/

Please enter isbn: 9781590597644
then click search.

I'm getting the desired results but the output wouldn't stay on the facebook canvas. It redirects to the actual website.

http://www.bookdealfinder.com/mini/index.php
(www.bookdealfinder.com)

What I intend to do with this app is scrape about 22 websites for book prices, find the lowest price for new, used, and books for rent, then display the results on the same page. I can send you the source code and provide you my FaceBook account details if you will be needing them. Please help. Thanks.
0
Comment
Question by:JRose
  • 2
  • 2
4 Comments
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 21871640
Does facebook let you use server script on your pages or just html and clientside script?  Can you run a PHP script and do they have cUrl enabled?

You can't do this just with html or Javascript.  They are most likely using some script to break your frame and there is little you can do to stop this (most likely).  Scrapping is a solution but Javascript can't do it when the page is on another server, domain or uses another protocol.  PHP CUrl is a method that would work.

Let me know if you have a question about this.

bol
0
 

Author Comment

by:JRose
ID: 21879904
Hi bol, yes facebook can run PHP and I believe cURL too. I'm just not sure about javascript. I believe they have their own version of JavaScript called FBJS (http://wiki.developers.facebook.com/index.php/FBJS). I have used cURL in this app to scrape data. Anyone experienced in facebook applications development?
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 21970569
Did you try a basic PHP script on the Facebook site to see if it would work?  You can find out if cUrl is an option by looking the results of phpinfo() .  Let me know if you don't know what I mean by that.

You should also make sure that book site does not have a prohibition in its "terms of use" regarding scraping.  Although some sites don't care there are many that have something against it and it would not be appropriate to pursue this without first contacting them and getting written permission.

Let me know what other help you need or if you have a question.

bol
0
 

Accepted Solution

by:
JRose earned 0 total points
ID: 21971166
Yes Sir, I have tested not only basic but also advanced PHP functions, including cURL on FaceBook. Actually the who thing is working now. Thank you for your questions and thanks for trying to help.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This is about my first experience with programming Arduino.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now