简体   繁体   English

Xcode-如何将照片从iPhone应用程序共享到Facebook托管的页面供稿

[英]Xcode - how to share photo from iPhone app to Facebook managed page feed

so the problem I'm facing is this: user takes photo in-app, and shares it on Facebook, but it only gets shared on his own wall. 所以我要面对的问题是:用户在应用程序中拍照,然后在Facebook上分享,但是只能在自己的墙上分享。 This is rather easy, and I can done that. 这相当容易,我可以做到。

However, how to customize the app so the user posts the photo on the wall of some page he manages? 但是,如何自定义应用程序,以便用户将照片发布在他管理的页面的墙上? Is it even possible? 可能吗? (I mean, it should be in my opinion, but I just don't know how) (我的意思是,这应该在我看来,但我只是不知道如何)

Thanks for any and all help! 感谢您提供的所有帮助!

EDIT: 编辑:

So far I got here: I can post a photo on Page by my own profile, and I can post a feed update on the page by the page itself. 到目前为止,我到了这里:我可以按自己的个人资料在Page上发布照片,也可以按页面本身在页面上发布Feed更新。 However, I was not able to combine these two things, as in posting the photo on the page by the page. 但是,我无法将这两件事结合起来,就像逐页将照片贴在页面上一样。 Also created a new question concerning this issue here: ObjC, Facebook Page - posting news feed works, but posting photo does not 在此处还创建了一个与此问题有关的新问题: ObjC,Facebook页面-发布新闻提要有效,但张贴照片不起作用

This isn't possible because of a bug in the API: https://developers.facebook.com/bugs/206254392780441 has the details. 由于API中存在错误,因此无法执行此操作: https : //developers.facebook.com/bugs/206254392780441包含详细信息。

One workaround is to post to the /feed connection of the page and attach an image to the feed story. 一种解决方法是发布到页面的/ feed连接并将图像附加到feed故事。 That image won't be displayed as large as a proper photo upload, but should work OK. 该图像将不会显示为与正确的照片上传一样大,但是应该可以正常工作。

That bug means that posting to the /PAGE_ID/photos connection of a Page using a User access_token will incorrectly upload the photo to the user's /photos connection instead. 该错误意味着使用用户access_token发布到页面的/ PAGE_ID / photos连接将错误地将照片上传到用户的/ photos连接。

Posting to a page's /photos connection will work as expected when using the Page's access_token; 使用页面的access_token时,按预期发布到页面的/ photos连接; the photo will appear on the page's photos page, on the page's timeline, and attributed to the Page itself (ie 'from' the page) 该照片将显示在该页面的照片页面上,该页面的时间轴上,并归因于该页面本身(即“来自”页面)

If your app is specifically for adding content to a page, and has a server-side component, another workaround to get the photos from a user onto the page is to have the users supply a photo to you via your own interface (ie upload it from the user's device to your server), and use one of the page admins' access_tokens to get a Page access_token and make the upload that way. 如果您的应用程序专门用于向页面添加内容,并且具有服务器端组件,则将用户照片上传到页面上的另一种解决方法是让用户通过您自己的界面向您提供照片(即上传照片) (从用户的设备到您的服务器),然后使用页面管理员的access_tokens之一获取页面access_token并以这种方式进行上传。

我认为使用iOS原生共享选项无法实现这一点,因此我将签出官方Facebook SDK: https//developers.facebook.com/docs/ios/

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

相关问题 通过iPhone应用程序将照片上传到Facebook页面 - uploading a photo to facebook page via iphone app 如何通过 Facebook 移动应用程序在 Flutter 应用程序中与用户管理的 Facebook 页面共享链接(或图像) - How to share link (or image) with quote to a Facebook Page managed by the user in a Flutter app via Facebook mobile app 如何在Facebook的iPhone应用程序中共享页面内容? - How can I share the contents of my page in iPhone app on facebook? 从iPhone应用程序在Facebook'feed'上发布图片 - Posting picture on Facebook 'feed' from an iPhone app 如何在Facebook上从iPhone书本应用程序共享所选文本 - How to share selected text from iphone book app on Facebook iOS Facebook SDK分享照片并从Facebook应用注销后 - iOS Facebook SDK share photo and after logout from Facebook app Facebook应用程序风格的照片从UITableView / Feed缩放 - Facebook app-style photo zooming from UITableView / Feed 从iPhone App在Facebook上分享视频 - share video on Facebook from iPhone App iPhone:如何将照片上的人标记为iPhone的Facebook应用? - iPhone: how to tag people on photo as facebook app for iPhone does? 如何在不使用本机ios应用程序的FBSDKShareDialog的情况下在Facebook墙上共享照片或链接 - how to share a Photo Or link on facebook wall without using FBSDKShareDialog from native ios app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM