sending a private message to your friends via Facebook IOS SDK

杀马特。学长 韩版系。学妹 提交于 2019-11-27 09:17:12

It is possible to send a private message via facebook- just not with the SDK. You can get the user's 'username' (ie. http://www.facebook.com/username) and you can send them an email via your app to 'username@facebook.com'.

Shapow!

Major bonus: attach a file and it will be included in the facebook message.

One caveat: the email will not reach the recipient's message inbox unless the sender's email address is affiliated with a valid facebook user account. I would imagine this is in place to thwart spam.

No, it is not possible to send private messages using the Graph API.

Yes, it is still possible to post to a friend's wall. I just checked it out just now using the graph API Explorer tool: http://developers.facebook.com/tools/explorer. I used /friendId/feed with an HTTP post of "message" = "testing" and my friend confirmed they saw it on their stream.

Lizan
let messageDialouge = MessageDialog.init(content: <ShareContent>, delegate: nil)
   if messageDialouge.canShow {
        messageDialouge.show()
    }

And do add fb-messenger-share-api inside the LSApplicationQueriesSchemes in info.plist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!