Adding FBML to users wall post? - facebook

When posting to the users wall can I include FBML? i.e. "Mick just scored the high score on {GAME}"?
I'm not sure if it's possible or not.
Thanks.

All the details about the allowed content of the various fields in a stream post are available in the documentation.
EDIT
description: Descriptive text about
the story. This field can contain
plain text only and should be no
longer than is necessary for a reader
to understand the story. The
description can contain up to 1,000
characters, but Facebook displays the
first 300 or so characters of text by
default; users can see the remaining
text by clicking a "See More" link
that we append automatically to long
stories, or attachments with more than
one image.

Related

How to search instagram comments containing particular keyword

I want to search the comments published on any media for any particular key word or combination of few key words. My requirement is to get the comments containing that keyword with the help of API. I went through the documentation of Instagram API there I found that search can be made through hash-tag only and most of the time not necessarily my keyword is a hash-tag. So problem is I want to search though the text. That means if the text containing my keyword then it should return that text else not.
There is no API to search for "keywords", you can only search one hashtag with API, and it searches in photo caption as well as comments.
You will have to use /media/media-id/comments API to get all comments, save it and then manually do a search. This is not efficient way.
After you tag your post with a hashtag, you'll be able to tap the hashtag to see a page that shows all photos and videos people have uploaded with that hashtag. There is no API to search for "keywords", you can only search one hashtag with API, and it searches in photo caption as well as comments.

How to localise Facebook Objects and Actions

Apologies if this has already been asked or if this is a dumb question, but I can't seem to figure out how to localise OG actions and objects and the Facebook documentation has defeated me (again).
Scenario:
I have a single OG action called Like (the same action that FB creates automatically for apps that use the Like button).
I also have two objects: post and comment.
Stories are created by my app along the lines of "{name} likes a post on {app name}". In the activity panel they appear as "{name} likes {title} on {app name}". Note i do not have any OG Stories defined - I'm simply publishing the Like action along with one of the two objects I have created.
What I'm struggling to figure out is, how to localise the "likes a post on" and "likes" part of the stories being published to a user's timeline.
I am already generating the appropriate locale and locale:alternate OG meta tags that the FB scraper uses to build the stories. The two locales I support are en_GB and ar_AR and for the ar_AR locale I also include localised title and description meta tags.
When I publish a story for a test user with the AR locale selected, the story includes the localised title and description text in Arabic however the "likes a post on" and "likes" text is still in English. I've checked the localisation app in Facebook and there are no strings appearing to localise, whilst the localisation section within the app settings only provides areas for the app title and description and locale specific images.
Does anyone out there have any insight in to how I can localise the "likes a post on" and "likes" associated with the publishing of the Like action?
Thanks in advance!

How to create anchor text links in facebook posts

How can I create a text link with anchor text in a facebook fanpage post?
It works because I have seen many posts containing such links, even in comments.
I have tried this but it does not work:
Anchor Text
Two scenarios:
Posts: Not possible. Can only have very basic HTML formatting: bold, italic, strike, underline.
Notes: Possible. Quite a number of HTML allowed. Access by typing "My Notes" into the search field. Click. Edit your note and publish it as if it was a Post.
Most easy solution with photo tutorial
see there >>
How to Create Hyperlinks to Anchor Text on Facebook

Including a link in a facebook Post from the api

I am using the restfb Java api (from Scala) to post to Facebook. I have two questions.
i) If you put a link in the message field of a post, it will automatically be rendered as a link. But what if you want to include link text instead of the href in the post message? Including Dude gets rendered as a string. But clearly there are many examples of things like "Hey, check out this car , where car is a link. How do you do this?
ii) Facebook is including the description of my company in each post. I set the description field to the empty String and its still showing up. I even removed the description from the settings page for my Facebook app and its still showing up. Any ideas?
Thanks.
Instead of putting the link in the message parameter, you can put it in the link parameter of your HTTP POST to the Graph API. Otherwise, it cannot be done with an inline link that has text (like what you can do with normal href's).
I don't know of a way to remove a description meta tag once it's been set. Try just a period instead of an empty string to see if that works.

Post multiple hyperlinks with an anchor text to a facebook wall via Graph API

I need to make a post to my facebook wall from my windows application. The post must have multiple links embeded within the post content. I can do it using Grap API but the problem is that I cannot specify an anchor text for links. The links themselves are very long so it's absolutly necessary for us to have an anchor text. But it seems facebook does not understand anchor text tags.
I know there is a "link" object but it's not an option because it allows only one "link" object per post.
Is there any way to post multiple links with an anchor text within a single post via Graph API?
Thank you
In short, no.
You can use a Link object, in which case you can supply a Message, Title, Description and Caption, but you can't actually hide the link, or display different text on your link - Facebook will always control how your hyperlinks work.
Other messages and Posts are plain text, so you can't use HTML formatting elements either.
It's all done to reduce the potentially hideous display of messages posted to Facebook, and to protect users from disingenuous link texts.
You can use Facebook Notes feature instead. Facebook Notes fully support HTML.
See this. How spotify have done this if formatting html elements are not allowed.
Facebook notes really support HTML. So yo can post links like this:
03131991saty