Crawling a Facebook fanpage - facebook

I want to cral a facebook fanpage to get the details of all the members who are fans of that page. I there any function in the face book API which will help me. Or is ther any other way I can do this???

You might try DineJS, a programmable crawler:
http://code.google.com/p/dinejs/wiki/Samples

Scrapy is also a nice framework for writing custom crawlers.

Related

Images are not displaying in Facebook Share

I am using facebook sharer.php, to share a link from my site to the facebook wall. Following is the url, I am using to get this done.
https://www.facebook.com/sharer/sharer.php?s=100&p[title]=title_to_be_shared&p[url]=link_to_be_shared&p[images][0]=image_path
I am aware that sharer.php is deprecated. But I have searched a lot to implement this share feature. I found only this. But in this, the images are not rendered properly in all cases. In some cases the images are not loading while sharing.
Please help me to overcome this. Or if there is another API to get this done please let me know...
Thanks in advance!
Regards,
Raju
The sharer.php method is deprecated and no longer supported. As far as I can tell, the best replacement for sharing a page of your site is the Feed Dialog.

graph api - retrieve list of likes of a page

I've been searching & found it's probably not possible.. but I thought I'd ask anyway:
I have this facebook page & I'd like to display the user-images(=avatars) of everyone who liked my page. I think it's really strange this isn't possible using the facebook API!
So basically I need to retrieve a list of users who liked my page. Something like this: (yet likes doesn't exist).
https://graph.facebook.com/page_name/likes?access_token=token
If I'd use the simple facebook plugin - it does display user images of people who liked my page.; so how come the plugin can retrieve these images but API can not ?
Any help is much appreciated!
thanks in advance,
Ben
There isn't an API call or FQL query you can call to get the list of users who like the page. Facebook has prevented this type of call for privacy reasons. You should stick with using the plugin instead.

Creating a Facebook App

I am building a website for a client. He has a Facebook page for his business. On the homepage of his site, he wants a feed that will pull in all the updates from his business' Facebook page.
Now, I felt this would be very easy to implement (maybe it is) but I have scoured the Facebook API for any simple way to do this. I am having a lot of trouble understanding which way I should do this. I've settled on using JS to access it, but have no idea where to go from there.
Do I need to create an app? If so, which options do I select so I can access the clients facebook page?
How do I get my app that I've created to show up so a user can authorize it? I have so many questions, and Facebook isn't very good at giving me answers.
Any help is greatly appreciated.
I would suggest you just use the facebook page's RSS feed.
Example
Take his page URL e.g.
https://www.facebook.com/pages/Lazery-Attack/6001014870
Take the number at the end of the url off, and plug it into the facebook feeds URL e.g.
https://www.facebook.com/feeds/page.php?format=rss20&id=6001014870
Voila, you now have an RSS feed you can integrate into the website you are building.
URL Breakdown
The URL is broken down the following way:
https://www.facebook.com/feeds/page.php?format={feedFormat}&id={PageID}
Vaid feed formats are:
RSS - rss20
Atom - atom10
JSON - json
Other Examples
Atom
https://www.facebook.com/feeds/page.php?format=atom10&id=6001014870
JSON
https://www.facebook.com/feeds/page.php?format=json&id=6001014870
Take a look at the facebook API, right here: http://developers.facebook.com/docs/reference/api/page/
You can give it a try here:
http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts
The like box: http://developers.facebook.com/docs/reference/plugins/like-box/ also has the latest posts available
The simplest way is to add a Like Button to the page and make sure "show Stream" is checked on as this will show all recent posts. You can customise the appearance also (e.g. width, height etc).
No App or messy API calls needed!
Try it out here and simply paste the resulting code into your webpage:
http://developers.facebook.com/docs/reference/plugins/like-box/
Not an app, but the Facebook Social Plugins over here at Facebook For Pages

Source URL of Facebook Likes for Likebox

My question is regarding the likebox from this page: http://developers.facebook.com/docs/reference/plugins/like-box/
I want to know specifically what pages are generating likes for my Facebook page. For example, are they coming from the home page, individual product pages, or blog? I want to remove the likebox from pages that aren't generating any 'likes'
I was looking at this page: http://developers.facebook.com/docs/reference/plugins/like-box/
Is the edge.create event what I'm looking for here?
By the way, I know about the insights feature on Facebook where I can get stats on 'Like Sources'. I just want to know more specifically what URL's are being used for the Like Box.
Thanks in advance!
The edge.create method will allow you to capture when someone clicks on the Like button so you can do your own recording. If you don't want to write your own tracking code, you can use Google analytics, which is far easier since they do almost everything for you.
http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html

Facebook - syncing comments social plugin with comments on object's?

Currently i am adding the social plugins to my site. Specifically to my photo albums. To generate the albums i am using fql to grab all the albums from a certain page. So it then occurred to me that people will be commenting inside of facebook but the social plugin will only show comments for the url not for the photo's object inside facebook. I know i can get the object_id from the fql. Is there a way to link the two together so if a user comments on either my site or facebook it will be all included.
So i am a little stumped i looked around the graph api for quite some time with no luck so anybody have any ideas? :\
cheers guys
So there isn't currently a plugin that lets you put an Object_id into and it will grab all of the comments out for that object.
You will need to use the graph api and if the album is public then you will not need a oauth code to access the comments. Once you have this object just convert it to a a stand-object array and do what you will with it ;)