Talk:Action Links
From Facebook Developer Wiki
Contents |
[edit] Tokens ?
To improve clarity in this article can we please remove {*token*} formatting in this example? From what I can tell, this is being used to represent the clients own variables. This is confusing because {*token*} was actually a meaningful syntax in the old, soon to be deprecated feed form templates. -- Ryan (User:7301100)
- Ask and ye shall receive. Updated. Pete -- 563683308 18:39, 12 November 2009 (PST)
[edit] Dynamic action links?
I would like to make an action link which is displayed to everybody except for the one who posted the feedstory. Is this possible?
I have tried to use the following code in my action link, but with no success:
<fb:if-is-user uid="123">
<fb:else>
<fb:publisher-link uid="123" >
Send a getwell card to <fb:name uid="123" reflexive="true" />
</fb:publisher-link>
</fb:else>
</fb:if-is-user>
The above code does not show any action links to any users. It should show the link to everybody except for the user with the userID 123.
- Action links are part of Feed stories, and Feed stories can contain a limited set of FBML and HTML tags. See Allowed_FBML_and_HTML_Tags#Feed_Stories:_Allowed_Tags for details. Pete (563683308 14:49, 23 July 2009 (PDT))
[edit] Comment 1
Are these actually working? I don't see the URL being expanded in my templates. The generated link is: http://www.elevatedrails.com/{*my_url*}
The text is being replaced, but not the link
- We're investigating this right now. Thanks for the report. -- Pete (User:563683308)
[edit] Need for AJAX
FB should allow AJAX in action links. There are times when an app just needs to do some record keeping,
and not lead the user away from their page (or unnecessary updates).
[edit] ASP.NET is screwed for multiple Action Links
The crappy ASP.NET Library does not have the "action_links" parameter on the register TemplateBundle so you can't add action links. I have been unable to find any syntax that will all multiple actions links in the tamplate console. Any ideas?
[edit] Multiple Actions?
The examples in this article seem to imply multiple actions are possible but the tool to register templates only prompts for one action link. If one wishes to register more than one link it is mandatory to use Feed.registerTemplateBundle ? If it is so, some text clarifying that would be nice --1557560908 07:24, 18 June 2009 (PDT)
- Thanks for the report. We're investigating, but for now, you can register multiple templates with this call, and you should be able to do so with the console. We'll figure it out and I'll update the docs accordingly. Thanks, Pete (563683308 12:32, 18 June 2009 (PDT))
