Saturday, October 10, 2015

Landscape Facebook Comments system



In Landscape 1.4, we added the Facebook Comments system. Here are some notes on how to use that:

This will let you cleanly and easily add a Facebook comment engine to your Landscape based web pages, without having to run any server side software at all. Facebook handles all of that for you, if you set it up right. And Landscape will set most of it up for you. It's pretty spiffy.

To use this feature, you'll have to first create a "Facebook app". Don't worry, it's not as hard as it sounds. To do that, you'll need to be registered as a Facebook developer. So go here and do that:

https://developers.facebook.com/docs/apps/register

Then go here and create a new app. You can choose a WWW app if you just plan on moderating some pages. Otherwise, if you have bigger plans for your app, choose whatever you think is appropriate. The reason you're doing this is so Facebook will know who can moderate your pages. If you create an app, anyone you add to that app as a developer will be allowed to moderate pages you use that app ID for.

https://developers.facebook.com/apps/

Once you have that app created, just copy that App ID.

Now, go build your page in Landscape. Click the Objects->Facebook Comments button to add a comments area to your page. It will be red until you set it up properly.

Double-click it to set it up.

In the inspector window, two fields must be set, AppId and URL.

You copied the AppId just a moment ago, so paste it in here. Just the number. We don't need anything else.

And for the URL, if you don't know this yet, um... put something in as placeholder so you can test it.

This is all part of how Facebook tracks what pages have what comments. So when you go to deploy this, I assume you'll know the url back to this page, and enter it here.

It's important that this link is correct, because other people will see replies as "Someone just replied to your comment" or something like that. If you click that link, it will go to the url you entered here. So if it's wrong, they can still post comments, but you will go to the wrong page when you try to view them by clicking on a link in Facebook.

So get the url right.

One last thing--Facebook comments don't resize properly, and there's very little I can do about that at the moment. If the user reloads a page after they've resized it, it will fit.

That's about it. Deploy to a live web server and you should be good! Please let me know if you have any questions or suggestions.

Thanks!
-Chilton

No comments:

Post a Comment