简体   繁体   English

Facebook iOS SDK“共享”对话框-在朋友的墙上共享

[英]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.

相关问题 iOS Facebook SDK使用标准对话框发布到朋友的墙上 - iOS Facebook SDK post to friend's wall using standard dialog 如何使用Facebook IOS SDK对话框将照片发布到朋友的墙上(时间轴)? - How to post a photo to friend's wall (timeline) using Facebook IOS SDK dialog? 发布到朋友的墙上Facebook iOS SDK 3.1 - Post to friend's wall Facebook iOS SDK 3.1 朋友的供稿上的Facebook iOS / Android SDK共享链接 - Facebook iOS/Android SDK share link on friend's feed 如何使用iOS应用程序在Facebook上的特定朋友的墙上分享内容 - How to use share content to specific friend's wall on Facebook from an iOS app iOS版。 Facebook的。 是否可以在没有对话的情况下将消息发布到朋友的墙上? - iOS. Facebook. Is it possible to post a message to a friend's wall without a dialog? 使用iOS SDK 3.5和本机发布对话框在朋友墙上发布 - Post on friend wall using iOS SDK 3.5 and native post dialog 如何使用Facebook SDK在朋友的墙上张贴? - How to post on friend's wall using facebook sdk? 通过iOS Facebook SDK中的“共享”对话框共享时,分配应用程序名称 - Attributing app name when sharing via share dialog in ios Facebook SDK 通过iOS应用选择并发布到Facebook朋友的墙 - Selecting and posting to a Facebook Friend's wall from an iOS app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM