![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||
Add New Facebook "Like" Button to Threads and OpenGraph to Headinclude Automatically
![]() Developer Last Online: Mar 2021 ![]() ![]() ![]()
From The Open Graph Protocol :
Install Instructions: AdminCP - Plugins & Products - Manage Products - [Add/Import Product] , browse to the location of the .xml file you downloaded from this thread, Import it. Template Modifications In SHOWTHREAD, find:
Replace with:
Find:
Add under:
Wherever you want to add the Like Button, add
Configuration Instructions AdminCP - Settings - Options - Opengraph/Facebook Integration Global On/Off - Set to Yes to turn the system on. FB - Page Admins - A comma-separated list of the Facebook IDs of the Admins of your pages on Facebook. FB - App ID - The application ID of your Facebook Application. OG - Site Name - A short, human-readable name for your site that will appear in the Like on the User's Facebook Activity Stream. It is important to fill in these, as they are used by FB to fill in some of the information, and allows your pages (Showthread at the moment) to be referenced in the Open Graph. What's Next? This is an early beta release to gauge the interest in Open Graph/Facebook type stuff. I intend to add the tags to other pages, and implement some of the other Facebook Social Plugins. These will all be On/Off configurable. Some can be seen in action at: View Profile: kall - New Zealand Boards - Like for Member Profiles http://www.nzboards.com/the-lounge/r...on-sale-90544/ - Activity and Recommendation Streams in first and last post. (4.0.3 Version here: http://www.vbulletin.org/forum/showthread.php?t=242525) Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Integration with vBulletin Add New Facebook "Like" Button and Social Plugins (and OpenGraph to Headinclude) | kall | vBulletin 4.x Add-ons | 91 | 20 Feb 2012 18:01 |
#46
|
||||
|
||||
Find this in the ogfb_like_metadata template, and change the bit in the "" to whatever you want:
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting No members have liked this post.
|
#47
|
|||
|
|||
I am suddenly getting errors without having changed anything!!
When you click on the button it says "Be the first one to like: Error". Erros is a link, when you click it a popup opens saying the page could not be reached. Pls. see screenshot. fborg.jpg Any ideas what that is, why it happens out of nowhere and how to fix it? Thanks a lot! Edit: OK, it looks this is a Firefox issue. It works on IE, Opera and Google Chrome! Second edit: a user just reported it happend on IE as well :-( @MagicThemeParks: thank you very much, I will give it a try once my problem as above is sloved ;-).
__________________
www.cureconnections.com No members have liked this post.
Last edited by ceho; 01 Jun 2010 at 18:21. |
#48
|
||||
|
||||
I'm thinking that the temporary error without changing anything scenario has to be at the FB end. A few people mention it over on the FB developers forums.
See if it comes right in an hour or 2. ![]()
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting No members have liked this post.
|
#49
|
|||
|
|||
Could you please instruct me on an example where to place the "$ogfb_like_showthread" code so it appears just as in your screen shot?
Also, whenever a user uses the feature to post it on their profile it automatically grabs an image off the thread. Can I control which image is posted, I don't wish for this part to be automatic. I'd like to inset my forum's logo. Thanks No members have liked this post.
Last edited by ps2wiz; 09 Jul 2010 at 06:49. |
#50
|
|||
|
|||
Installed this, it's the third Facebook Like hack I have tried and this one works better than the others, I have tweaked and played about as I always do and finally worked in a tidy placement of the Like button, top and bottom of thread, with correct alignment.
Example: http://www.bowlandcentral.com/forum/...ad.php?t=86622 No members have liked this post.
|
#51
|
|||
|
|||
I try to show this button only in the first post without success. How can I do that?
No members have liked this post.
|
#52
|
||||
|
||||
You could try wrapping it in this conditional, in the postbit or postbit_legacy templates, not sure if it can be called there or not though as I haven't tried it.
No members have liked this post.
|
#53
|
|||
|
|||
Thanks.
I am just not able to put the like button any where else except in the showthread. It just dont show up. And it doesnt matter what I put in the plugin "OpenGraph/Facebook Integration - SHOWTHREAD variables". I can switch it to whatever I want (postbit_start e.g.) it still shows up in showthread but not in postbit_legacy. Weird. No members have liked this post.
|
#54
|
|||
|
|||
Originally Posted by Kwikms
It's not weird, it's that the variable mustn't be available in the postbit templates.![]()
There'll be a way round this, I'm just not sure what it is. No members have liked this post.
|
#55
|
|||
|
|||
Installed and works great
![]() Insights doesn't like my site application right now, or maybe that's because it hasn't been used enough? No members have liked this post.
|
#56
|
|||
|
|||
What's the difference between this? http://developers.facebook.com/docs/.../plugins/like/
No members have liked this post.
|
#57
|
|||
|
|||
Very cool, any updates on this? In you original post, how did you get the fully custom profile page seen here? http://www.nzboards.com/members/kall/
I would like to set that up for www.NJStangers.org since I already have the Facebook Login bridge going. Thanks! ![]() No members have liked this post.
|
#58
|
|||
|
|||
Originally Posted by Mark.B
Same issue, working in SHOWTHREAD but not in postbit_legacy...![]()
any workaround guys to make it work in postbit_legacy??? Thanks No members have liked this post.
|
#59
|
|||
|
|||
Can anyone explain to me or help me fix why after you "like" a post when I visit Facebook it has some random image next to it on my wall?
Sometimes it grabs a smiley face, or some random icon placed on my site. Is there a way to make the image the same? No members have liked this post.
|
#60
|
|||
|
|||
nvm, got that sorted.
Now I am a little undecided on where this button needs to go. Anyone have some examples of where you guys have your button with this hack? If you do, could you post which template and the code where you integrated it? No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:19.