Minefrance Index du Forum

Serveur de minecraft ouvert 24/24 7j/7 dédié et avec whitelist désormais

 FAQFAQ   RechercherRechercher   MembresMembres   GroupesGroupes   S’enregistrerS’enregistrer 
 ProfilProfil   Se connecter pour vérifier ses messages privésSe connecter pour vérifier ses messages privés   ConnexionConnexion 

Facebook Api User Location

Poster un nouveau sujet   Répondre au sujet    Minefrance Index du Forum -> Bienvenue ! -> Présentations
Sujet précédent :: Sujet suivant  
Auteur Message

Hors ligne

Inscrit le: 05 Mai 2016
Messages: 97
Localisation: Strossburi

MessagePosté le: Mer 10 Jan - 05:02 (2018)    Sujet du message: Facebook Api User Location Répondre en citant

Facebook Api User Location

Our latest news Tip Channable's top Boxing Day rules (aside from relaxing) December 22, 2017 With all this Christmas hype we mustn't forget Boxing Day. Email Sign Up or sign in with Google Facebook Facebook Graph API: Get userlocation Ask Question up vote 6 down vote favorite 1 Is there a way to get the location of my facebook friends using the Graph API? facebook facebook-graph-api shareimprove this question asked Jan 5 '11 at 7:09 Anush Shetty 1101511 add a comment 7 Answers 7 active oldest votes up vote 9 down vote Your friend is considered a user, so you go to the user documentation, get the field name location (to be send in the fields parameter) AND you check if you need a specific permission: Requires userlocation or friendlocation permission HOWEVER there's a typo! to get your friend's location you need the friendslocation (with s), reference. Channable Feeds eCommerce order connection Sell anywhere Channable offers an integration with various marketplaces. It's back! Take the 2018 Developer Survey today . $fbUserId . I've come across a problem in that I can't retrieve the user's country, only their 'location' - which is just the city and state / region in a combined format (such as 'Houston, Texas'). Send your products to more than 1000 price comparison websites, affiliate platforms and marketplaces. asked 3 years, 1 month ago viewed 2,666 times active 9 months ago Blog Take the 2018 Developer Survey Get the weekly newsletter! In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms of service. Here is useful link you might want to check out there too: shareimprove this answer answered Feb 28 '11 at 15:03 Sarfraz 273k57438530 Thanks for the info Sarfraz. shareimprove this answer edited Feb 28 '11 at 20:22 answered Feb 28 '11 at 16:20 BrynJ 4,711145077 +1 that is good news Smile –Sarfraz Feb 28 '11 at 17:10 I've added a correction to my answer - it is 2000 requests per hour, or 30,000 a day - and also added a parameter that limits matches to cities / towns / villages. more stack exchange communities company blog Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Log In Sign Up . Meet the people who use Channable every day "Thanks to Channable, we are now able to quickly and easily generate very specific product feeds for more than 20,000 designer products." Oscar Diele Director and co-owner Flinders.nl "A great tool for partners like Bol.com, Amazon and Beslist. Read more Feature New feature: Fulfilment by Bol / Logistiek via Bol December 05, 2017 We now support getting FBB/LVB (Fulfilment by Bol/Logistiek via Bol) orders from Bol.com. ex. Email Sign Up or sign in with Google Facebook Facebook Graph API: Get user location Ask Question up vote 0 down vote favorite I'm trying to get facebook user location with this code but it's not working: $userfbid = $fbuser; $useremail = $userprofile["email"]; $userfnmae = $userprofile["firstname"]; $userlnmae = $userprofile["lastname"]; $userlcity = $userprofile["location"]['name']; All the other fields work, but I can't get the current city/country of the user. Stack Overflow Questions Jobs Developer Jobs Directory Salary Calculator Help Mobile Stack Overflow Business Talent Ads Enterprise Company About Press Work Here Legal Privacy Policy Contact Us Stack Exchange Network Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Software Engineering Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica Salesforce ExpressionEngine Answers Stack Overflow em Portugus Blender Network Engineering Cryptography Code Review Magento Software Recommendations Signal Processing Emacs Raspberry Pi Stack Overflow Programming Puzzles & Code Golf Stack Overflow en espaol Ethereum Data Science Arduino Bitcoin more (26) Photography Science Fiction & Fantasy Graphic Design Movies & TV Music: Practice & Theory Worldbuilding Seasoned Advice (cooking) Home Improvement Personal Finance & Money Academia Law more (16) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity English Language Learners Japanese Language Arqade (gaming) Bicycles Role-playing Games Anime & Manga Puzzling Motor Vehicle Maintenance & Repair more (32) MathOverflow Mathematics Cross Validated (stats) Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more (10) Meta Stack Exchange Stack Apps API Data Area 51 Blog Facebook Twitter LinkedIn site design / logo 2018 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required. Read more . 'SELECT%20' . 'uid=' . Join Stack Overflow to learn, share knowledge, and build your career. Stack Overflow Questions Developer Jobs Tags Users current community help chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. –Danny H Nov 12 '12 at 14:21 add a comment up vote 2 down vote FB.api('/me', function(response) { var location = response.location.name; }); shareimprove this answer edited Jan 5 '11 at 7:58 answered Jan 5 '11 at 7:52 Josh R 65951531 add a comment up vote 2 down vote The fastest way to get all the information you want from friends of a user you can use the FQL method: $this->api->api(array('method'=>'fql.query','query'=>"SELECT uid,name,firstname,middlename,lastname,picsquare,hometownlocation,currentlocation,profileurl,email,website FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())")); For a list of all the tables with their corresponding column names I refer to: Facebook FQL Reference shareimprove this answer answered Oct 10 '11 at 14:33 Daan 2,94422240 add a comment up vote 1 down vote The FaceBook Documentation has the information you're looking for, including sample code and instructions. –BrynJ Feb 28 '11 at 20:21 add a comment up vote 6 down vote Use the php sdk: require 'facebook.php'; $facebook = new Facebook(array( 'appId' => 'APPID', 'secret' => 'APPSECRET', 'cookie' => true, )); Then ask for a signed request: $signedrequest = $facebook->getSignedRequest(); $country = $signedrequest["user"]["country"]; Now $country has a string such as "us" for United States and "uk" for United Kingdom etc. php facebook facebook-graph-api shareimprove this question edited Nov 14 '14 at 12:40 Ram Sharma 7,10432239 asked Nov 14 '14 at 11:53 codek 5241339 Check if user has given permissions to city or if user has entered location –Tejesh Nov 14 '14 at 12:03 Yeah the user gives permission to the current city. List of all user's attributes can be found here: I hope it will help someone Smile shareimprove this answer edited May 23 '17 at 10:29 Communityf 11 answered Mar 24 '14 at 10:34 LihO 30.2k657118 add a comment up vote -1 down vote According to Facebook's documentation, you can get the 2-letter ISO 3166-1 country code from the user's locale. ProductsFacebook LoginSharing on FacebookGamesFacebook App Ads. shareimprove this answer answered Apr 18 '11 at 9:24 Michael L Watson 7951018 add a comment up vote 0 down vote You can see the lifetime number of followers (by likes to your FB page) by country using an FQL query. Here's a PHP-SDK example: $facebook->api('/friendid', 'get', array("fields"=>"name,location")); Here I'm retrieving the name and location fields (please note that the id field will be retrieved automatically). You still won't be able to . Please help. ProductsFacebook LoginSharing on FacebookGamesFacebook App Ads 5a02188284
lovely quotes of love facebookfacebook accountmanager androidfacebook tech support chatpro facebook hack v1.5 professional facebook hacking tool downloaddownload facebook app for android 4.1.1chat room app on facebookfacebook for blackberry 8520 offline installerdaily luck app for facebooki don 39;t like the new facebook timeline how do i go backgood girl like bad boy facebook

Revenir en haut

MessagePosté le: Mer 10 Jan - 05:02 (2018)    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    Minefrance Index du Forum -> Bienvenue ! -> Présentations Toutes les heures sont au format GMT + 2 Heures
Page 1 sur 1

Sauter vers:  

Index | Panneau d’administration | Creer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB © 2001, 2005 phpBB Group
Traduction par : phpBB-fr.com