Solved

FaceBook application problem

Posted on 2008-06-24
4
761 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Progress

707 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