I can't seem to find how to do geo targeting (filtering a post based on the location of a user) on facebook using their API.
Does anyone already managed to do it?
This is how you can do it via their interface:
I can't seem to find how to do geo targeting (filtering a post based on the location of a user) on facebook using their API.
Does anyone already managed to do it?
This is how you can do it via their interface:
Maybe you can try out some sample codes from the IP2Location.com . It can be detect the user's location by IP address and display the geographical location information.
hey,
I have worked in facebook integration. I have written the tutorial on FB integration with any site.
Please check the link, hope this helps you.
Basically we need to Init Facebook, then on requireSession callback OR onStateChange callback you can call any JS function. Please look into the link for detailed JS functions for login, logout and callback. I also shown how to show standard FB friends invite popup dialog.
http://javalibs.techlads.com/2010/05/facebook-integration-in-your-web.html
Check link given below for Facebook javascript client API.
I hope this helps.
http://wiki.developers.facebook.com/index.php/JavaScript_Client_Library
thanks.
this is not possible with the current API, (only the front-end) but is anticipated to be added in the near future.