RE: Facebook integration

thumbnail
7014555, modified 15 Years ago. Liferay Master Posts: 875 Join Date: 1/7/11 Recent Posts
Hi Friends,

I am using <liferay-ui:social-bookmarks/> tag for social networking
by default it supports digg,furl,reddit . now my question is i want to add facebook site in this list so that i can publish or share my data on facebook...
.so can any one help me out .
is it required facebook integration api for that ????
if yes than how i can use it ?
i am new to liferay so i am not that much aware about it. my liferay version is 5.2



<liferay-ui:social-bookmarks url="<%= bookmarkURL.toString() %>" title="<%= entry.getTitle() %>" target="_blank" />


Snapshot

Attachments:

thumbnail
4445682, modified 15 Years ago. Regular Member Posts: 220 Join Date: 1/14/10 Recent Posts
Hi Jitendra,

have you found a solution to your question? I am looking for the same thing.

Cheers
thumbnail
4703000, modified 15 Years ago. Liferay Legend Posts: 1191 Join Date: 3/10/10 Recent Posts
I am not familiar enough with facebook to give you direct instructions. But the social bookmark providers that are shown are defined in portal.properties like this

   
social.bookmark.types=blinklist,delicious,digg,furl,newsvine,reddit,technorati

social.bookmark.post.url[blinklist]=http://blinklist.com/index.php?Action=Blink/addblink.php&amp;url=${liferay:social-bookmark:url}&amp;Title=${liferay:social-bookmark:title}
social.bookmark.post.url[delicious]=http://del.icio.us/post?url=${liferay:social-bookmark:url}&amp;title=${liferay:social-bookmark:title}
social.bookmark.post.url[digg]=http://digg.com/submit?phase=2&amp;url=${liferay:social-bookmark:url}
social.bookmark.post.url[furl]=http://furl.net/storeIt.jsp?u=${liferay:social-bookmark:url}&amp;t=${liferay:social-bookmark:title}
social.bookmark.post.url[newsvine]=http://www.newsvine.com/_tools/seed&amp;save?u=${liferay:social-bookmark:url}&amp;h=${liferay:social-bookmark:title}
social.bookmark.post.url[reddit]=http://reddit.com/submit?url=${liferay:social-bookmark:url}&amp;title=${liferay:social-bookmark:title}
social.bookmark.post.url[technorati]=http://technorati.com/cosmos/search.html?url=${liferay:social-bookmark:url}


looks like it would be easy to add your own if you knew the url
thumbnail
7014555, modified 15 Years ago. Liferay Master Posts: 875 Join Date: 1/7/11 Recent Posts
Puj Z:
Hi Jitendra,

have you found a solution to your question? I am looking for the same thing.

Cheers


Hi,Puj Z

Yes I found the solution ...what you need to do is just made changes in portal-ext.properties file


 social.bookmark.types=facebook,twitter

social.bookmark.post.url[facebook]=http://www.facebook.com/share.php?u=${liferay:social-bookmark:url}&amp;t=${liferay:social-bookmark:title}



In social.bookmark.types property specify the different type of social networking site you want to support like facebook , twitter .

And below that in social.bookmark.post.url[facebook] you have to provide the format by which social networking site share the data . For facebook its U(url) and T(title) for other site it may differ..

Now it will work...........
2597287, modified 14 Years ago. Junior Member Posts: 79 Join Date: 3/24/09 Recent Posts
Hi Jitendra,

first of all thanx for the hint...

Now i have a further question:

When the entry is posted to my facebook profile, there's an image shown... This image is not defined, or, to be more precise, the default facebook-image is shown. Do you know how i can change this? I'd like to use a custom image...

Thanx in advance, Matthias