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 badges2 Answers
Reset to default 2The 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)