How to get friends birthday list from facebook? [duplicate] - facebook

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to get friend's birthday list using facebook api?
I'm developing an application and all my users are also facebook user. Now I want to send emails from admin section to that user's friends about his birthday. Is this possible?

It's not possible to retrieve a user's friend's email address, so you won't be able to do that.
It's trivial to retrieve a user's friend's birthdays provided they've given you the appropriate permissions though. You'll need the friends_birthday permission to do this, and once you have that permission the query is just /me/friends?fields=birthday

Yes, you could send a FQL query to get the birthday, look into User table.
developers.facebook.com/docs/reference/fql/user/
I feel you need to request permission to the user for that.

Related

Get users friends list in Graph API version 2.0 [duplicate]

This question already has answers here:
Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application
(8 answers)
Closed 8 years ago.
I am developing an application in which the user will be logged in using Facebook credentials.
Once the user is logged in I need to retrieve the user's friends list. But as per new Facebook Graph API version 2.0,I cant get the list of friends until the user's friends logs in to the application.
Is there any possibility to take the user's friends list without user's friends logging in to the application.
If the user cant get the friends list, how come he can invite his friends to the application and asks his permission to retrieve his details? Is there any other way to do this?
Is it possible to fetch the entire friends list of a user by using FQL. If so will it affect the app in the future?
I am new to facebook apps.Please help me to solve this. Thanks in advance.
If you are a canvas game you can use invitable_friends ( https://developers.facebook.com/docs/games/invitable-friends/v2.0 ). Otherwise you can use the Share or Send/Message dialogs.

Collecting facebook user-id from website visitors [duplicate]

This question already has an answer here:
Get Facebook User Id of my website visitors w/o auth
(1 answer)
Closed 4 years ago.
Is there any way to take the facebook user-id of a website visitor and save the user-id to a text file to keep track of visitors. I know there is some ways using Facebooks API, but it seems like the user have to give permission, and that is not what we want. So any way to save the facebook user-id of a website visitor without any user interaction?
Simply put: you can't. This would be a huge privacy/security issue IMO. You need explicit permission from the user to get his ID on your own website.

How to get all email id's of friends which are in friendsList from facebook

I am new to iphone.my question is How to get all email id's of friends which are in friendsList from facebook while using Graph API in iPhone? I am able to get all the pictures,name,first name and last name of the friends which are in friends list except the email id's how can we do this If any body know this please help me.IF any body provide some code for this it will be helpful for me....
You can't, e-mail addresses aren't available via API for friends due to privacy risks.
See the facebook Permissions Reference.
It is simply not possible to get the email addresses of Facebook users other than the user of your app (ie. the person who authorizes your app and for whom you get an access_token), not even Friends of the user. Even extended permissions won’t help here.

Getting friend user id, and their photos

I am doing some research into the capacity of Facebook Connect. I have some questions on how a couple of bits of functionality.
Is it possible to fetch a list of all friends of a user?
The idea of this is that a user would log in using my site and then they could search through their friends and select one, and the site would get that friends users id and store it to the sites database.
Getting a photos from that user
After getting the friends user id, would it then be possible to get their photos? Or would the friend need to give the site permission to do that?
I am looking into a site where you can buy a greetings card for a friend, and i wanted to know whether my users would be able to login via facebook, pick a friend, get a photo and then at the time of their birthday it would send them a private message (which i think i know how to do) linking them back to my site where they could view the birthday card and their photo.
Thanks
To answer your questions:
Yes. Once you have an access token from the login process for a user, make a Graph API request to https://graph.facebook.com/me/friends. You can test this for yourself here: https://developers.facebook.com/tools/explorer?method=GET&path=me%2Ffriends
Yes. During the login process, you must request user_photos and friends_photos permissions after which you can use the access token for a Graph API request to https://graph.facebook.com/USERID/photos. This will only return those photos for a friend which the user is allowed to see for the current privacy settings.

How do I retrieve the list of people who liked my Facebook page? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Retrieve Facebook Fan Names
How to list facebook users who like a page or interest
in my project i want to retrieve the list of persons who have liked facebook my page. I want to get the user details and their uids.
A user may Like the page and once again he likes the page using a duplicate profile, so to avoid this type of things i want to get the uid of the person who like the page.
Is there any Api available for this...
Is it possible to get the uid value using the batch request Api
Is there any other way to get the uids of the user, please help me friends..
Simple use this.
https://www.facebook.com/browse/?type=page_fans&page_id=your page id
It will return up to 500 of the most recent likes. Happy coding!
The only way you can get the ID of such users is to have an app running as a page tab. When the user loads your tab, and installs (i.e. gives permissions to) your app, the signed_request that Facebook sends to your server (along with the HTTP POST request for the page) will contain a user_id.
tl;dr: you won't get any IDs unless users install an app you made.