1
Hasanibrahim
An important hack for Facebook "comment and like"

Hello dear xoops users,

i was working to fix FBConnect module for a huge problem explained in https://xoops.org/modules/newbb/viewtopic.php?post_id=354114 . As you know when you use this module, visitors can only comment on one section and all comments were collecting in the comment box.

I tried to fix the module with millions of the ways but result was un-succesfful. So i tried to use php codes for that,The easiest and basic way to fix that is addind a php block includes these codes:

echo '
';

echo 
''YOURDOMAIN.com' $_SERVER['REQUEST_URI'] . '" data-width="450" data-num-posts="15">
';


The first code is for "facebook like" which is not making issue, but the second code is working greatly. As you see, its target site is the current url of your website, hence visitors now comment the true page.

EDİT:
i forgot to explain how to moderate the comments. This problem was another annoying issue. But at the end, i have found its solution, too. You need to add these codes to your default theme html file:

<meta property="fb:moderator" content="YOUR_FACEBOOK_ID"/>
<
meta property="fb:admins" content="YOUR_FACEBOOK_ID"/>
<
meta property="fb:app_id" content="YOUR_FACEBOOK_APP_ID"/>


The last app_id is optional. You can learnd your facebook id via with http://findmyfacebookid.com/ .

After you add these codes between head tags, you can moderate the comments comes from facebook users.

enjoy

2
Cesagonchu
Re: An important hack for Facebook "comment and like"

Thank you

Login

Who's Online

329 user(s) are online (232 user(s) are browsing Support Forums)


Members: 0


Guests: 329


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits