javascript - Get user ID of the person using the send dialog in Facebook JS SDK -
i want create option our users share item on our site using facebook send dialog. user needs select friends or wants share content with. after want know user id's of person send , persons send can create private part on site users can discuss product.
i thinking solving using unique number parameter in item's redirect url , add facebook user id's in database. way can create relation between user send message (and friends) , particular item want discuss privately.
fb.ui({ method: 'send', name: 'people argue win', link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html', display: 'popup', }, function(response) { console.log(response); }); the response object holds success bool , can't find way more information result. ideas on how solve otherwise?
i think trying not possible breach of user privacy.
if user authenticated app, can access facebook id, , if use requests dialog (http://developers.facebook.com/docs/reference/dialogs/requests/) instead of send button, you'll response give user ids of people have been sent request.
Comments
Post a Comment