c# - How to add a URL in the description field in Facebook by using dialogfeed javascript? - Stack Overflow

There is a requirement to post messages from our website. I am using the below code for achieving the s

There is a requirement to post messages from our website. I am using the below code for achieving the same.

;source =www.google&  link=www.google&picture=.jpg&  name=Facebook%20Dialogs&  caption=Reference%20Documentation&  description=Using%20Dialogs%20to%20interact%20with%20users&  message=Facebook%20Dialogs%20are%20so%20easy!&  redirect_uri=

Everything is working fine. I want to add a URL like "For more information click here - www.somesite". I tried to put href in the description body but Facebook does not recognize it as a link. We have both iOS and HTML5 application and in iOS, it is possible to put link in Description. So was wondering why javascript does not support this.

The below code does the same in iOS.

NSDictionary *propertyValue = [NSDictionary dictionaryWithObjectsAndKeys:@"[(www.somesite)]",@"text",@"",@"href", nil];
NSDictionary *properties = [NSDictionary dictionaryWithObjectsAndKeys:propertyValue, @"For more information  click here",nil];

Any solution for this?

There is a requirement to post messages from our website. I am using the below code for achieving the same.

http://www.facebook./dialog/feed?app_id=123050457758183&source =www.google.&  link=www.google.&picture=http://fbrell./f8.jpg&  name=Facebook%20Dialogs&  caption=Reference%20Documentation&  description=Using%20Dialogs%20to%20interact%20with%20users&  message=Facebook%20Dialogs%20are%20so%20easy!&  redirect_uri=http://www.example./response

Everything is working fine. I want to add a URL like "For more information click here - www.somesite.". I tried to put href in the description body but Facebook does not recognize it as a link. We have both iOS and HTML5 application and in iOS, it is possible to put link in Description. So was wondering why javascript does not support this.

The below code does the same in iOS.

NSDictionary *propertyValue = [NSDictionary dictionaryWithObjectsAndKeys:@"[(www.somesite.)]",@"text",@"http://www.somesite.",@"href", nil];
NSDictionary *properties = [NSDictionary dictionaryWithObjectsAndKeys:propertyValue, @"For more information  click here",nil];

Any solution for this?

Share Improve this question edited Feb 6, 2012 at 15:43 Jiju Somanath asked Feb 6, 2012 at 12:26 Jiju SomanathJiju Somanath 311 silver badge3 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 2

The JavaScript API does support this, but it's not well documented on the Facebook Developers site. I was finally able to get it working after reading this page: fbdevwiki./wiki/FB.ui

Here's sample of the JavaScript params that worked for me:

var params = {
method: 'feed',
name: 'Name Name Name',
link: 'http://www.website./',
picture: http://www.website./yourimage,
caption: 'Caption Caption Caption',
description: 'Get it from iTunes today',
properties: {'Download Free':{ text: 'My Fancy App', href: 'http://www.itunes./'}},
actions: [{name: 'Free iTunes Download', link: 'http://www.itunes./'}]
};

The "actions" parameter adds a link down by the "like" and "ment" links at the bottom of the post.

No, you can't have links to description or caption (you can place URL here but it wouldn't be link) and message property is deprecated (and even removed from documentation of Feed Dialog).

Instead you should use link property so name of the post will be pointing to.

BTW, Even if you will use Graph API to post content without showing it to user and add URL in the message it will not be displayed as link in most places user can see it. (beware that message is something that should be written by user, or it will be probably violation of Platform Policies)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745519394a4631189.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信