简体   繁体   English

将短信从iOS应用共享到Facebook

[英]Sharing text message from an iOS app to facebook

I have a microblogging app for ios [developed by hiring freelancers]. 我有一个用于ios的微博应用程序[由雇用自由职业者开发]。 It permits posting of text messages upto 147 characters only. 它仅允许发布最多147个字符的文本消息。

I wish that a user should be able to share a microblog from app to facebook. 我希望用户可以将微博从应用程序共享到Facebook。

But freelancer told me that Facebook doesn't permit so. 但是自由职业者告诉我,Facebook不允许这样做。

Is this correct? 这个对吗? Does Facebook not allow text sharing? Facebook不允许文本共享吗?

If not correct, what is the possible workaround? 如果不正确,可能的解决方法是什么?

In facebook sharing is possible. 在Facebook中可以共享。 But facebook is not allowed share default text. 但是facebook不允许共享默认文本。 when share text at a time open facebook dialog for enter text. 一次共享文本时,打开Facebook对话框以输入文本。 Refer : https://developers.facebook.com/docs/sharing/ios 请参阅: https : //developers.facebook.com/docs/sharing/ios

Sharing a message on Facebook is only possible by authorizing a user with the publish_actions permission. 只有通过授权具有publish_actions权限的用户,才能在Facebook上共享消息。 You need to get the permission reviewed by Facebook before everyone can use it. 您需要先获得Facebook审核的许可,然后所有人才能使用它。 Without review, it will only work for users with a role in the App. 未经审查,它将仅对在应用程序中具有角色的用户有效。

API reference and example code: https://developers.facebook.com/docs/graph-api/reference/user/feed#publish API参考和示例代码: https : //developers.facebook.com/docs/graph-api/reference/user/feed#publish

Login Review: https://developers.facebook.com/docs/facebook-login/review 登录评论: https : //developers.facebook.com/docs/facebook-login/review

That being said, prefilling the message is not allowed, the user must write every single character on his own: https://developers.facebook.com/policy/ 话虽如此,不允许预填充消息,用户必须自己编写每个字符: https : //developers.facebook.com/policy/

Easier solution without authorization: https://developers.facebook.com/docs/sharing/web 未经授权更轻松的解决方案: https : //developers.facebook.com/docs/sharing/web

Sharing is possible. 可以共享。 You can check the following link https://developers.facebook.com/docs/sharing/ios 您可以检查以下链接https://developers.facebook.com/docs/sharing/ios

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM