Is it possible? I know you can get their city (with their permission), but can you get their country?
Cheers.
How about locale? My locale is "en_US". Can play around with it here:
https://developers.facebook.com/tools/explorer/?method=GET&path=1739831728%3Ffields%3Dlocale
EDIT:
Ehh, not a fan. My friend lives in Dubai and it returns "en_US" for him too:
https://graph.facebook.com/shivam.daryanani
Checkout this post: Facebook Graph API - how to get user country?
Related
I'm trying to make an app using Alexa using node js. I am new to these kind of things. I need to the following.
Echo: Hi, I'm a Alexa. What's your name?
User: Hi, I'm John Christopher
Echo: Hello John Christopher, How can I help you?
Alexa should be able to capture the user's name and should be able to chat with the user by the his/her name. I have tried lots of things but I could't figure out a proper way to implement this.
Amazon is developing the features more day by day. Currently, there is no direct method for getting the username prompted from the alexa device. But you can use AMAZON.NAMES for saving the names if the use nmae is in the name list and it can be saved in a session.
The default skill project template that is created when you're using the ASK-CLI is a skill that does exactly that. Here is a link to video I did that will show you how to use the ASK-CLI to create a skill.
https://www.youtube.com/watch?v=p-zlSdixCZ4
Thank you all for your support around here.
Me again and with a simple question, does anyone know how to get the Spouse/Partner/Fiancée name of the logged in Facebook user?
I am using the user_relationships permission and I get if the user is married etc... but I can't figure it out with who? I need the name of the person...
Thanks
You can only get data of users who authorized your App too, so in order to get the name of your spouse, your spouse would need to authorize the App.
After that, you can use the family endpoint: https://developers.facebook.com/docs/graph-api/reference/user/family
How to specify the country in facebook graph api search
im not very tech in this, need in simple form
https://graph.facebook.com/search?q=Sarkozy
Then, i want to have replies only in a certain country only.
https://graph.facebook.com/search?q=Sarkozy......?????
I have tried several methods, nothing worked out for being not knowledge in this
thanks in advance
Facebook uses geo ip to detect the country where the request came from, you should use a country proxy in order to "tell" facebook what kind of geo located results you want.
I have tried to implement the age restrictions by using a post request on the graph:
https://graph.facebook.com/[APP_ID]?restrictions={"age_distribution":"18+"}&method=post&access_token=[FUNKYFIED_ACCESS_TOKEN]
This sets the restriction to 18, however when a user hides the year when he/she was born the user will never pass the age restriction... I understand that the graph won't return the birthday when a user has hidden his/her birthday/birthyear. But why won't facebook allow the user through the restriction?
Is there any other method on doing this?
Perhaps your app could request the user's birthday in the permissions and you can do a calculation based on that but that just gives you the same problems - not everyone will have entered their DOB on Facebook.
Only other thing I can suggest is take a look at some other pages and see how they do it, some good examples might be the Fan pages of alcoholic beverages.
Is there a way to get a list from all users from certain city from Facebook?
Or any other facebook-independent solution would be great.
thanks
Unfortunately there is no way to do this in the Facebook API. You can get the current location and hometowns of all the friends of a specific user. But not all the users in a specific city.