Facebook Page -- Dynamic HTML Based on User - html

I'm looking to create a Facebook Page with dynamic content based on the user visiting the page. For example, if the user has "liked" something with the consisting of "soccer" then it would display a little module specifically for soccer... or if they liked "baseball" then it would display baseball.
I guess my overall question is: "What content does FB allow developers to scrape and use in their code?" I want to utilize this on the Static FBML application.
Thanks in advance!

You may want check the open graph documentation:
http://developers.facebook.com/docs/opengraph/
Graph API: For accessing profile data
http://developers.facebook.com/docs/reference/api/
In order to request and receive extended information about a profile you need to setup a signed request from the Graph api. This can be done from a custom facebook app.

Related

Any way to get json of the facebook page in 2019?

I'm trying to make parser from facebook page posts to Squarespace blog posts. I already did it for Instagram but I need json file of the Facebook page.
I need something similar as I have for inst (https://api.instagram.com/v1/users/[USER-ID]/media/recent?access_token=[TOKEN]);
I found few articles how to do it but all of them was made before the facebook’s massive data leak and after that they have made many changes to their app’s permissions and imposed many other rules.
https://developers.facebook.com/docs/graph-api/reference/page/feed/
You need a Page Token of the Page if you own the Page
You need Page Public Content Access approved by Facebook for Pages you do not own
Since you tagged the question with the JS SDK: Make sure not to use hardcoded Access Token on the client! They are always meant to be kept secret.

Facebook post via API - include html, css, & outside images?

First off: I'm a designer, I'm not a developer. I don't really know php or JS, I know html and css. And that's not changing.
Context: I'm working on designing a website for a client that once it is turned over to the development team will involve using the facebook API to allow users to post things on their facebook walls. I'm not familiar with the facebook API at all and I don't really use facebook. However, I need to know the limitations of these things so I can actually design something that is possible to develop. I tried looking at the facebook API docs, but it's gibberish to me since I'm not a developer.
My actual question: I know text can be added, I know at least one main image can be added to go with the post. Can any custom html/css be added to the content of a facebook post? Specifically the client asked for the stars system on the website to the facebook posts (which would require custom html, css, and images from the site), but after working with the facebook share button/iframe I doubt facebook allows for that type of thing.
And if you don't mind posting a long answer: is there any control over what the post looks like, is that all set by facebook? Things like sizes of images, placement of content, etc. Or is this just another insert iframe (maybe with a few variables) and facebook has 100% control over what goes inside the iframe?
No, you can't control over what the post looks like using Facebook Graph API. Publishing a post only supports the following fields:
message: The main body of the post, otherwise called the status message. Either link or message must be supplied.
link: The URL of a link to attach to the post. Either link or message must be supplied.
actions: The action links attached to the post.
place: Page ID of a location associated with this post.
tags: Comma-separated list of user IDs of people tagged in this post.
privacy: Determines the privacy settings of the post.
object_attachment: Facebook ID for an existing picture in the person's photo albums to use as the thumbnail image.
Source: Graph API User Feed Reference.
As you can see, there is no field to customize the design/template of the post. In short, what you publish using the Graph API will just look like a typical post that you post using Facebook GUI.

which is the best way to create multilingual facebook landing page?

I would like to create a multilanguage landing page ,
users will get the content according to their chosen language.
I would like the landing page to have a design and a contact form
can i do this using static html app ? or is there any other way to doing that ?
Thanks
After the user authorizes your app you should receive a signed request from facebook. This request is explained here: Signed Request.
As part of the data in that signed request, you get the user object which contains the locale string.
You can use that locale code in order to get the users' preferred language and act based on that.
The fact that you want to display different things based on language choice means that the content is not static, it's dynamic.
You can just use javascript to auth the user with facebook, get the locale from the signed request, and then load different static html files according to the chosen language.
That way the content itself is static, but the choice is dynamic.
Hope this is what you meant.

Reveal Tab with Unique content based on location

Lots of marketing articles suggest using a coupon as an incentive in a reveal tab, but I don't see how you would prevent people who have liked your page from abusing the coupon by accessing it over and over.
In my app, I want to offer a coupon that the user sees only the first time they like a page. Users who have been to that page before would not be able to access it again.
I also want to limit who can see it based on location.
When your iframe fan page is rendered, Facebook sents an HTTP POSt to your page with a signed_request post parameter. If you decode it, you will get details about whether they like your page and what country/language they are from. If country works for you, then you are all set for that part. Restricting the coupon to only being viewed is not possible based on the anonymous information Facebook sends. You would need to create an application and have the user approve your application so you can get their ID and log that they have seen it. This would also give you more detailed information about where they are located.

Why does Facebook's Open Graph protocol require an fb:admins or fb:app_id .. and what is the importance of this property?

I'm playing around with adding some Facebook Open Graph meta tags to my web site, to help with Facebook sharing of my website content.
One of the tags is this:
fb:admins or fb:app_id
A comma-separated list of either Facebook user IDs or a Facebook
Platform application ID that administers this page. It is valid to
include both fb:admins and fb:app_id on your page.
Questions:
What is the importance of this property?
Administers what page?
Why do we need to administer some page?
I already answered on Facebook Dev Forum :
As described here : http://developers.facebook.com/docs/opengraph/
Your page will appear in the "Likes and Interests" section of the user's profile, and you have the ability to publish updates to the user
Without this property you'll loose admin right on the Open Graph Facebook Page
Yep, when users likes your website's page, it'll generate an Open Graph Facebook Page :
When users will try to go on it (by cliking on publications, or searching), it will redirect to your website's page.
To publish status updates to users news feed, create events, or add pictures related to this page.
Also, having admins or an app_id means that the insights for that web page will show when you are logged in as that user, or looking at that app's insights. It is important to link everything together properly so you get a full overview of your interactions and users etc.