Facebook Graph API共享链接

问题描述:

我想使用Facebook Graph API共享链接。我正在做下面的事情。Facebook Graph API共享链接

NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
            @"Description goes here.",@"description", 
            @"www.google.com/image.jpg",@"picture", 
            @"www.google.com/invites/username", @"link", 
            @"Google",@"name", 
            @"www.google.com",@"caption", 
            nil]; 


    Facebook *fb = [Model shared].facebook; 

    [fb requestWithGraphPath:@"me/links" andParams:params andHttpMethod:@"POST" andDelegate:self]; 

,我想FB后是这样的: enter image description here

但是我已经了解到的是,Facebook的图形API从共享页面需要的图像和描述本身。

有没有什么办法可以自定义您想分享的内容?

如果您发布从位于URLlink的Facebook得到OpenGraph标签(如picturedescription)指定为link

使用Graph API通过发布post对象而不是link允许您指定自定义信息。

其实实现这个你可以改变me/linksme/feed

[fb requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self]; 
+0

但随后在这种情况下,标题(即www.google.com在我的情况)不会是一个链接。 – Soni 2012-01-13 04:56:55

+0

我认为没有办法得到这种帖子,我想要的方式 – Soni 2012-01-17 07:42:55

+0

@Jucicy名称,描述,标题等字符限制是什么? – user3306145 2016-08-10 12:47:14