Talk:Attachment Example

From Facebook Developer Wiki

Jump to: navigation, search

I fleshed out the sample code so that it actually used form inputs, and added screenshots and a brief description of the user experience. i hope that helps make it more clear. --506843584 01:55, 9 December 2007 (PST)

Oh, and it's an actual, working example!

Beefed up sample so it works on my server, hope it works on yours.


Contents

[edit] Limitations?

What are the limitations on the FBML allowed inside of the attachment preview and the attachment itself?


[edit] Developing on Localhost?

If I want to develop the page first on my local machine (Localhost) and only when it is ready to expose it on the server, can I still use the "attachment callback"?

When I am putting in the "Callback Url", localhost address, and click on the attach (in compose a message or post to wall). Facebook complains that: "Error loading content from ..."

I was right, In order to add a form there the server must be public, you must have a public server before you start developing, am I the only one that finds it annoying?


[edit] Post!!!

Remember that facebook does s POST to your page that means that if you are developing with visual studio, file types such as html cannot be http Post defualtivly, in order to bypass this problem I called my file .aspx, aspx can be fetched by post.

[edit] How to Get Sending & Receiving User

I get that fb_sig_user will be filled in for the user doing the attachment as long as they are an app user. I do wish that we could get the user regardless, however. I don't need to be able to see anything about that user that requires them authorizing my app, but I'd like to at least be able to fill in the user's ID into the database to track what was sent.

Also, I see no way to get the user that is the recipient of the attachment (FB message). Why can we not see who its going to? That user is just as likely to be an app user as the person sending (one or the other HAS to be), so why is there no option to get it?

+1 I also think it is reasonable to expect to get an fb_sig_target or somesuch if the recipient is an app user.

--1573391613 11:55, 14 April 2009 (PDT)

reference