How can we track hashtags with the new facebook hashtag implementation

There is currently no API for the hashtags feature on Facebook edit: there was however a public posts search function which will return some public posts with a certain hashtag if you use that hashtag as the search string in API version 1.0 – there is no equivalent in version 2.0 onwards It ignores the … Read more

Facebook Graph API – Get ID from Facebook Page URL

It seems to me that the easiest solution to what you describe is to just get the id/name from the url you have using lastIndexOf(“https://stackoverflow.com/”) (which most languages have an equivalent for) and then get “https://graph.facebook.com/” + id. The data that this url returns has the id (i.e.: 6708787004) and the username (i.e.: southpark), so … Read more

Facebook open graph meta tags & valid html [duplicate]

Don’t forget that they also want you to declare some schemas to the html tag – specifically the open graph one via xmlns:og=”http://opengraphprotocol.org/schema/. OG is based on RDFa which adds the additional attributes to the meta tags. Once you’re done with that, be sure to add your fb:like – <fb:like href=”http://developers.facebook.com/” width=”450″ height=”80″/> – the … Read more

How to get Likes Count when searching Facebook Graph API with search=xxx

Couldn’t find this in the documentation but multiple calls to the API are not necessary. You can use summary when querying a feed or multiple posts. Specify this in the fields parameter. https://graph.facebook.com/PAGE_ID/feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true) This will return a response like this. { “data”: [ { …. “summary”: { “total_count”: 56 } … }, { …. “summary”: … Read more

How to let Facebook Login button redirect to a particular URL

1) You can also redirect on login using some code like this (note the auth.login event): <script src=”http://connect.facebook.net/en_US/all.js”> </script> <script> FB.init({ appId: ‘??????????????’, cookie: true, status: true, xfbml: true }); FB.Event.subscribe(‘auth.login’, function () { window.location = “http://example.com”; }); </script> <fb:login-button> Login with Facebook </fb:login-button> 2) To determine whether to show or hide the login button, … Read more