× Joomla Facebook Connect support forum

Topic-icon Pull in Post

Active Subscriptions:

None
13 years 11 months ago #24199 by pcorujo
Pull in Post was created by pcorujo
Hi there,

I would like to pull in a post the allow people to like as a sort of voting system. How can I go about keeping the same post on my page?

Thanks so much for your help,
Paul
The topic has been locked.
Support Specialist
13 years 11 months ago #24201 by alzander
Replied by alzander on topic Pull in Post
I'm not sure what you mean. You can display the Like button on any page and set it to whatever URL you want. So, even on your home page, you can have a Like button that goes to some interior page (which would be the page/item people are voting on). You can even create 'made up' URLs, like:
site.com/#voteforitem1
site.com/#voteforitem2

When that posts to the user's wall, the Vote should be for your home page, but there would be a unique count for each button. You'll have to test that to make sure it works out that way.

Both the JFBCLike module and the {JFBCLike href=http://site.com/} tag allow you to specify the URL you want to use.

Hope that helps explain, but if still unsure, just let us know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24203 by pcorujo
Replied by pcorujo on topic Pull in Post
Thanks Alex, I will do some testing. Originally I was thinking of pulling in a post I make to my fb page in a similar way that the fan page module does. The difference is I would keep that same post on my website for a month or so and give people the chance to comment on and like that post. Does each post have an id or something that I could use to identify it and pull it in?
The topic has been locked.
Support Specialist
13 years 11 months ago #24227 by alzander
Replied by alzander on topic Pull in Post
Paul,
Yes, you can get your posts and (I believe) have the Like button associated with that post show on your page. I'll give the steps and recommendations below, but definitely let us know if you have any questions, issues, or feedback.

First, I'd honestly recommend making the post on your Facebook profile and then simply make an HTML representation of that post on your site. It is possible to 'pull' the actual post into your site and display it there, but unless you plan to do this frequently or for every post (so that it's automated), that's just getting in over your head..

So, let's say you've created a Facebook Post to your Page and then created an article on your site with the same text (or modified however you want). Next:
* Go to developers.facebook.com/tools/explorer
* In the "GET" box, add <YOUR_PAGE>/feed to the URL, so it will look like:
https://graph.facebook.com/SourceCoast/feed
That will show the recent feed posts to your Page. In there, you'll be able to find your recent post (look for the "message" variable" and then, under that, will be a Like and Comment link. I *believe* you can use those links in the {JFBCLike href=<LINK>} and {JFBCComments href=<COMMENT>} tags.

Obviously you'll have to test (a lot), but I think that should be all you need. If you decide you need to automate the fetching of that stuff, you can see from the Graph Explorer that it should all be available to you (the message, the links, etc)... it will just take a bit more work to do that, and if you don't want it automated, that's not worth it.

Let us know if that helps, and good luck!
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24255 by pcorujo
Replied by pcorujo on topic Pull in Post
Thanks so much for your help Alex. Ill play around with the code and check back with the end results.
The topic has been locked.
Support Specialist
13 years 11 months ago #24287 by alzander
Replied by alzander on topic Pull in Post
Sounds good. We gave that to another user, and they did verify that the access token was being extended. Hopefully, you can use that how you need now.

Good luck!
Alex
The topic has been locked.