The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
https://developers.facebook.com/docs...embedded-posts
HTML Code:
<script src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.2" async></script> <div class="fb-post" data-href="https://www.facebook.com/FacebookDevelopers/posts/10152128760693553" data-width="500"></div> |
#3
|
|||
|
|||
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.
|
#4
|
|||
|
|||
It should work fine as long as they use the right URL to the post.
|
#5
|
|||
|
|||
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.
Code:
<script src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.2" async></script> <div class="fb-post" data-href="https://www.facebook.com/FacebookDevelopers/posts/10152128760693553" data-width="500"></div> |
#6
|
|||
|
|||
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> |
#7
|
||||
|
||||
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: HTML Code:
<div class="fb-post" data-href="https://www.facebook.com/[AUTOLINK]slobodni.net[/AUTOLINK]/posts/992355867520543" data-width="500"></div> |
#8
|
|||
|
|||
Maybe AUTOLINK is coming from another plugin?
|
#9
|
||||
|
||||
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. |
#10
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|