How can I execute a FQL query with Facebook Graph API

Here’s an example of how to do a FQL query using the Graph API and JavaScript FB.api( { method: ‘fql.query’, query: ‘SELECT uid, first_name, last_name FROM user WHERE uid = ‘ + someUid }, function(data) { // do something with the response } ); This assumes you’ve already setup your page according to the Facebook … Read more

How to get large photo URL in one API call?

I haven’t tried this with stream/feed photos, but the generally accepted way of doing this is: http://graph.facebook.com/{ID of object}/picture If you want the “large” version, you would do: http://graph.facebook.com/{ID of object}/picture?type=large I’m not 100% sure if this would work for an actual photo (instead of a user profile picture or page profile pic), but I … Read more

Get Facebook “Like” count for every page on my domain

Actually I would do it this way: $arrayOfPages = array(‘url1’, ‘url2’, ‘url3’); $listOfPages = implode(‘,’, $arrayOfPages); SELECT share_count, like_count, comment_count, total_count, url FROM link_stat WHERE url IN ($listOfPages) That would give you all the data with the URL as a unique identifier without having to break Facebook’s policy against fake users. You can dynamically create … Read more

Is there an API to force Facebook to scrape a page again?

Page metadata isn’t the sort of thing that should change very often, but you can manually clear the cache by going to Facebook’s Debug Tool and entering the URL you want to scrape There’s also an API for doing this, which works for any OG object: curl -X POST \ -F “id={object-url OR object-id}” \ … Read more

Get long live access token from Facebook

There is a way to extend this to 60 days. described here: https://developers.facebook.com/docs/roadmap/completed-changes/offline-access-removal/ under Scenario 4: Client-side OAuth and Extending Access_Token Expiration Time through New Endpoint Edit: In order to extend the access token you need to make the following request with your short lived access token: https://graph.facebook.com/oauth/access_token? client_id=APP_ID& client_secret=APP_SECRET& grant_type=fb_exchange_token& fb_exchange_token=EXISTING_ACCESS_TOKEN

What’s the Facebook’s Graph API call limit?

The best answer to this question from another forum, from Ash Rust in 2010: “After some testing and discussion with the Facebook platform team, there is no official limit I’m aware of or can find in the documentation. However, I’ve found 600 calls per 600 seconds, per token & per IP to be about where … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)