I want to get my friends which belongs to my city from facebook and for this i use current_location.city. But its not working... please help me. Thanks
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
This FQL query works for me. It returns an array of each user's {uid, current_location} where the current_location includes text of the city that I want.
Change 'Seattle' to whatever city you'd like, or use a variable to grab the city name from the current user.
You need user's extended permission for current location. Until user approved current location extended permission you can't retrieve it.
You can check the latest graph api base tutorial from here: http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/
The FQL query is simple:
The returned value is an array - maybe that's why you're off.
The questions are:
Share some code in your question, and someone might be able to help.
Try this :