[英]Facebook iOS SDK Share Dialog - Sharing on a Friend's Wall
Is it possible to use the Facebook iOS SDK Share Dialog to share on a Friend's Wall? 是否可以使用Facebook iOS SDK“共享”对话框在“朋友的墙上”共享? I know that it is possible to do this using the Feed Dialog, but that provides the user with a less than optimal experience, and seems to be discouraged by Facebook.
我知道可以使用“提要”对话框来执行此操作,但是这样做会给用户带来不太理想的体验,并且Facebook似乎不鼓励这样做。 It would be fantastic if we could configure the Share Dialog to share with one particular friend.
如果我们可以将“共享对话框”配置为与一个特定的朋友共享,那就太好了。
Additionally, is there a way to share with a friend privately (such that it would be sent to Messages)? 此外,是否有一种可以与朋友私下共享的方式(以便将其发送到消息)?
I have researched pretty extensively and it seems like there is not a way to do either of these things using the iOS SDK - I would just like to confirm that I am not missing something. 我已经进行了广泛的研究,似乎没有一种方法可以使用iOS SDK来做这两种事情-我只是想确认我没有丢失任何东西。
UPDATE:Facebook now offers the Message Dialog for sending links, images and open graph objects to friends through FB Messenger, but the recipient(s) can't be specified ahead of time. 更新:Facebook现在提供了“消息对话框”,用于通过FB Messenger向朋友发送链接,图像和打开的图形对象,但是无法提前指定收件人。
It seems like the ability to post on other people's wall is being removed Feed story publishing to other users is disabled for this application . 似乎已删除了在其他人的墙上张贴文章的功能,因此该应用程序已禁止向其他用户发布Feed故事 。 The SDK itself could potentially allow it
SDK本身可能允许它
FBRequest *request = [[FBRequest alloc] initWithSession:FBSession.activeSession
graphPath:@"/**CHANGE_WITH_USER_ID**/feed"
parameters:params
HTTPMethod:@"POST"];
But trying I get the following error: 但是尝试得到以下错误:
Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x175773d0 {com.facebook.sdk:HTTPStatusCode=403, com.facebook.sdk:ParsedJSONResponseKey={
body = {
error = {
code = 200;
message = "(#200) Feed story publishing to other users is disabled for this application";
type = OAuthException;
};
};
code = 403;
}, ...
As I was saying in the comment, as far as I know private messaging has been removed as well. 正如我在评论中所说,据我所知,私人消息传递也已被删除。
The Share Dialog seems to be used only for sharing on your own timeline. “ 共享”对话框似乎仅用于在您自己的时间轴上进行共享。 The API does not provide options to change the request URL (as in FBRequest).
API不提供更改请求URL的选项(如FBRequest中一样)。 Share Dialog doc
共享对话框文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.