Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

FaceBook application problem

Posted on 2008-06-24
4
Medium Priority
?
786 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
In this article, we’ll look at how to deploy ProxySQL.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

650 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