I am developing a facebook application for phototagging. I need to send e-mail notifications to users who has been tagged. For that I need to check the user account settings->notifications->photos->Tags you in a photo(check whether an e-mail should be sent or not). Is there any provision for that?
Thanks in advance.
hello dude why do not use FQL and Query to Photo_tag Table to get the user_id who is being tagged and sent notification to him
I don't understand the question, Facebook already does this.
Account->Account Settings->Notifications
Related
Is there any way to get friend list of a emailid?.
I want to get facebook friend list of a email email id like 'test#gmail.com' without login into facebook with this email id.
Is it possible??
No, you can't. Users are identified by an ID on Facebook, not their email.
Facebook PHP SDK is "just" PHP library that help you to use Facebook Graph API, go read its doc to lear all what you can and can't.
I'm building an app and the client wants the following logic:
User logs in to the app.
User selects a Friend.
User selects a gift that the User will send to his Friend.
User writes a message to his Friend.
Friend receives a SECRET notification about the gift.
With "SECRET" I mean that Friend will not be able to see WHO is the User that sent the gift.
So the concrete question is how to send a notification to the FRIEND without a clue about the USER that sent it? I think is not possible but I want to be sure and check with the experts.
And if it's not possible, what do you recommend to accomplish something like this? Should I use the app request dialog and hope that the Friend will see it? Is there any other FB API tool I can use?
I really appreciate your help.
What you're trying to achieve is not possible with FB's API. As explained already by #CBroe.
You can send a request notification if the user uses your app. However, You can do one thing but that won't be completely anonymous.
You can send the friend a notification from the user and make it just an invite to try the application and after the friend uses your app (authenticates), your app can then send a notification and say someone left a SECRET message for them. This could be after few hours or instant, Whatever you/your client prefers. However as i said, this won't be completely anonymous nor it's hard to guess who left the message unless the friend isn't smart enough to know who that could be.
With the beta Notification API something similar would be possible, but only if the receiver has authenticated your app: https://developers.facebook.com/docs/games/notifications/#impl
In the past days I've been reading the Facebook documentation. What I can't get to work is how to make a working script so users can invite their Facebook friends, as friends in my system, who are already registered on my site, via my social connection script made with the Facebook SDK. I would love to give you guys some code to work with, but I need to be honest: can't figure out in any way to make this work. My next step was to search on Google and GitHub. I did find something similar, but not that good. So currently my last hope now is some IT-guru on Stackoverflow. Ideas, tips and links would be very helpful.
Edit:
My intention is to use e-mail to make it work.
If you don't understand the question or have some questions - feel free to ask.
Regards.
You should do this based on Facebook user id, not email.
Save the FB user id to your database, and when a new user registers on your site, pull their friend’s ids from Facebook and compare them to the ids in your database.
You can do this via email address.
Users in your website using their email address and Users of facebook also uses their email address.
You can check if someone invite his friends from facebook. than script check email address available or not in your database. you can show available users via his/her email.
You may get the code from here,
http://developers.facebook.com/docs/reference/dialogs/requests/,where you can use the 'to' field for selecting your friends to invite.
I am co-developing an app with an ios programmer. In our app there is a feature of Share Topic, in which we would like to show the list of Facebook friend (which is already done) but as per my ios programmer its not possible to get the Facebook friends list.
Any ideas? If it is not then is it possible to get it from PHP (web-services) end?
---EDIT BEGIN----
And maybe if not possible to get email addresses, then can we send private messages to those friends? Is this would be possible?
---EDIT END----
Any helpful thoughts would be appreciated. Thanks!
Your iOS Developer is wrong.
FriendLists can be accessed via the FriendList object endpoint (docs). Note that this functionality requires the read_friendlists permission.
As a side note: anything that can be acheived via the GraphAPI can be done with the iOS SDK.
Example:
[facebook requestWithGraphPath:#"me/friendlists" andDelegate:self];
I've logged in and used the Facebook CHAT api all right. The problem is that I want to have a system where anyone can send me a message, without actually being on the friend list.
When the sender is in the friend list, I see the message. Is there a possibility that I can configure my account to receive messages from anyone, independing on if they are in the friend list or not?
Best Regards.
The Chat API and the Message API are not the same.
You may want to think of Chat as a subset of messages.
When a message is received and the user is a friend you receive a chat notification, if not, no response.