Facebook API Getting Spouse Name - facebook-graph-api

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

Related

Get instagram ID from facebook graph API without manage_pages permission

I'm creating an app that's using facebook login to get instagram follower insights. Currently I've followed and and successfully made the soloution written here: https://developers.facebook.com/docs/instagram-api/getting-started/
But here's the problem. Facebook won't approve the "manage_pages" permission for my app. Without manage_pages I have no idea how to get the instagram account id.
I've tried for a couple of weeks now, and facebook won't give any explanation other than "This permission is not required for your app's intended function, or it doesn't appear to enhance the user experience" and then referencing this https://developers.facebook.com/docs/facebook-login/permissions
I currently have a facebook support ticket regarding the issue but they haven't replied for almost 2 weeks. And I'm getting a little desperate.
Using below URL for version 3.0 and 3.2 to get the instagram accounts - It works with "manage_permissions" but without it the response is empty.
me/accounts?fields=name,id,access_token,instagram_business_account{id}
Facebook has finally replied to my support ticket and accepted my app review! The approach and guide I was using above was correct.
I have similar problem to get Instagram Id without extra manage_pages permission. I see no point to ask users for manage page permissions (just read it - its includes ads/create/delete etc permissions, crazy) just to get their Instagram accounts id connected to the page. I've found pages_read_engagement permission will provide this data! So, read only permission fixed my problem. Try it! Its better than manage_pages I guess.

Getting basic profile information of some one using graph API

I am new to graph api.
i have done slight reading and found that we need access tokens for accessing a profile, but for my application i only have access to the email-id of a person
I just wanted to know if i can get anyone's basic profile information by just knowing thier E-mail id.
help in anyway way would be appreciated.
No, without authorization you can´t get any user info, and you can´t search for Facebook users by email. You would have to authorize users with the email permissions and compare it that way.

Couldn't get email from facebook when user accept the email permission

I use Facebook Graph API to get user's email as user account in my system.
It works well 99.9% when user accept the email permission.
But in some accounts, I got 'null' even when user accept the email permission.
and I checked the setting of one account, nothing unusual or different from others.
Do anyone knows what's happened and how to solve it?
many thanks,
Phil
It's possible that some users simply won't have an email - it's possible to sign up for Facebook with a cell phone only - if there's some other reason i'm not aware of it, it could be a bug with the API

Does Facebook allow a user to give my app access to their friends email addresses?

I am building an app that requires a user to give me access to their Facebook friends. The app is working. However, I have a problem: does Facebook allow a person to give my app access to their friends' email addresses?
Short answer: NO
You can see this in the permissions document:
I really hope they don't.
If they did, and a friend of mine used your app, I could probably sue them under the UK data protection act.

Find people from location on Facebook

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.