views:

141

answers:

3

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:

alt text

A: 

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.

JaceyKala
Sorry this is really not what I'm looking for. I'm trying to use what I took a screenshot of, but programmatically
marcgg
A: 

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.

Paarth
Thanks for the answer bit this has nothing to do with my question
marcgg
+1  A: 

this is not possible with the current API, (only the front-end) but is anticipated to be added in the near future.

jjurisch