简体   繁体   English

iOS的Facebook URL方案-发布照片

[英]Facebook URL Scheme for iOS - post photo

There are many URL schemes that can be used for facebook on iOS. iOS上有很多可用于Facebook的URL方案。

Is it possible to use one of these URL schemes to post a photo to a fan page? 是否可以使用这些URL方案之一将照片发布到粉丝页面?

I was trying to use fb://publish/photo/(initWithUID:)/(aid:)/(pid:) and fb://upload/(initWithSource:)/profile/(uid:) without any luck. 我试图使用fb://publish/photo/(initWithUID:)/(aid:)/(pid:)fb://upload/(initWithSource:)/profile/(uid:)没有任何运气。

I'm not sure what to use for the initWithSource: . 我不确定initWithSource:使用什么。

Has anyone had any success in doing this? 有没有人在此方面取得任何成功?

You can use ShareKit framework to share the images to Facebook. 您可以使用ShareKit框架将图像共享到Facebook。 All you need to do is simple as following. 您需要做的很简单,如下所示。

SHKItem *item = [SHKItem image:myImage title:@"Title"];
SHKFacebook *sharer = [[[SHKFacebook alloc] init] autorelease];
[sharer loadItem:item];
[sharer share];

ShareKit is very useful and easy to use. ShareKit非常有用且易于使用。

你可以从这里得到一些想法,然后合并在自己的代码的代码按您的要求的粉丝专页上张贴照片

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

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