Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Embedding a Facebook post within a forum post
#1
Not Solved
Hi,

Is it possible to embed a Facebook post within a Forum post?

The code I have is:

<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fgofishingni%2Fposts%2F598836550310375%3A0&width=500" width="500" height="536" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>

Many thanks!
Reply
#2
Not Solved
You'd need to create a MyCode (something like [facebook]), in the ACP. There's some documentation here that may help: https://docs.mybb.com/1.6/MyCode/
Reply
#3
Not Solved
(02-19-2017, 10:29 AM)Euan T Wrote: You'd need to create a MyCode (something like [facebook]), in the ACP. There's some documentation here that may help: https://docs.mybb.com/1.6/MyCode/

Could you explain in more detail?
Reply
#4
Not Solved
Can anyone help me at all?
Reply
#5
Not Solved
Try this:

Add a new MyCode in ACP

Regular Expression:
\[fbpost\](.*?)\[/fbpost\]

Replacement:
<iframe src="https://www.facebook.com/plugins/post.php?href=$1&width=500" width="500" height="536" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>

Save the new MyCode and test it in a forum post, like:
[fbpost]https://www.facebook.com/gofishingni/posts/598836550310375[/fbpost]
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#6
Not Solved
(02-20-2017, 01:33 PM)SvePu Wrote: Try this:

Add a new MyCode in ACP

Regular Expression:
\[fbpost\](.*?)\[/fbpost\]

Replacement:
<iframe src="https://www.facebook.com/plugins/post.php?href=$1&width=500" width="500" height="536" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>

Save the new MyCode and test it in a forum post, like:
[fbpost]https://www.facebook.com/gofishingni/posts/598836550310375[/fbpost]
I'm afraid this doesn't seem to work. Is there something I am missing?
Reply
#7
Not Solved
Please check the MyCode in ACP (no whitespaces in front or back of regular expression)

It works for me like charming:

   
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#8
Not Solved
(02-20-2017, 05:37 PM)SvePu Wrote: Please check the MyCode in ACP (no whitespaces in front or back of regular expression)

It works for me like charming:

Hmmm still can't seem to get it to work - have I set it up correct

   

(02-20-2017, 05:37 PM)SvePu Wrote: Please check the MyCode in ACP (no whitespaces in front or back of regular expression)

It works for me like charming:

I think I have got it sorted now, thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)