Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 09 Oct 2015, 16:13
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Embed a facebook post into vbulletin?

I searched but is there any way to embed a Facebook POST rather than just a video?

I tried fooling around with making a custom bb code with fb embed code but didn't' get very far.
__________________
www.montrealracing.com
Reply With Quote
  #2  
Old 09 Oct 2015, 17:56
Dave Dave is offline
 
Join Date: Jun 2010
https://developers.facebook.com/docs...embedded-posts


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That should do the trick, then the replacement variable should be the data-href URL.
Reply With Quote
  #3  
Old 09 Oct 2015, 18:08
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Since each post has the page's or person's name in it (in addition to the post number), I don't think it'll work as it does for videos.
__________________
www.montrealracing.com
Reply With Quote
  #4  
Old 09 Oct 2015, 18:19
Dave Dave is offline
 
Join Date: Jun 2010
It should work fine as long as they use the right URL to the post.
Reply With Quote
  #5  
Old 09 Oct 2015, 19:06
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Originally Posted by Dave View Post
It should work fine as long as they use the right URL to the post.
The embedding works but because the fb developers page address is hard coded into the bb code, no matter what post I put, it's alwasy the same one.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
www.montrealracing.com
Reply With Quote
  #6  
Old 09 Oct 2015, 19:16
Dave Dave is offline
 
Join Date: Jun 2010
You probably misunderstood me, people have to provide the whole URL in the bbcode for that, not just the ID.

<div class="fb-post" data-href="FULL_URL_TO_POST_BY_USER_HERE" data-width="500"></div>
Reply With Quote
  #7  
Old 28 Apr 2016, 23:00
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
It doesn't work for me. For some people, it does, but not for all. If you know the reason why it doesn't work, it would be great.

And, interesting is, when I look at BBcode in BBcode manager, it works in small window next to each BBcode (Replacement video), but it doesn't show in posts. Like some crucial info is stripped from that area.

EDIT:

Inspecting element, this is what I see:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Don't know from where this [autolink] comes. It obviously makes problem.

Last edited by Alan_SP; 28 Apr 2016 at 23:07.
Reply With Quote
  #8  
Old 28 Apr 2016, 23:47
Dave Dave is offline
 
Join Date: Jun 2010
Maybe AUTOLINK is coming from another plugin?
Reply With Quote
  #9  
Old 29 Apr 2016, 20:35
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
You're right, it does. VaultWiki. You spotted it right. I'll try again with different post and video content.

EDIT: I managed to get working facebook video and post, except some (so far I see that they have permalink in their link).

Other problem is that I need to reload page to see them (full reload).

EDIT2: About last problem, it is caused by AJAX. Posts that go through AJAX don't show facebook content.

Last edited by Alan_SP; 29 Apr 2016 at 21:39.
Reply With Quote
  #10  
Old 02 May 2016, 21:49
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
I thought that not too long ago the iframe version of this was deprecated yet I still see the Javascipt and iframe versions available here:
https://developers.facebook.com/docs...ns/page-plugin

Just make sure you're using the most current version of the code or any code from facebook, keep it up to date as well including any apps in your facebook developers account.

It looks like Dave is right, seems to be another plugin inserting this into url.
__________________
Daddy Does Dios and Figs!

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
  #11  
Old 02 May 2016, 22:02
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
At the moment I have working posts (for most post, those that have groups and permalink in their url don't work for some reason, there's error message) and videos.
Reply With Quote
  #12  
Old 21 Mar 2020, 19:47
Beergeeksf Beergeeksf is offline
 
Join Date: Jan 2018
Got this working -- mostly:

Replacement code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But note that Facebook has been adding whole bunch of tracking parameters to the URL, so for the embed to work, the URL will need to be trimmed of any parameters -- ?and after.

So this URL:

https://www.facebook.com/ProBrewerPa...XUho&__tn__=-R

Needs to become this URL for the embed to work properly:

https://www.facebook.com/ProBrewerPa...58584785235864
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
BB Code Enhancements BBCode: Embed Facebook Videos vb4 hazem_aliraqi vBulletin 4.x Add-ons 24 13 Dec 2016 13:45



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:20.

Layout Options | Width: Wide Color: