如何将变量等数据传递到 iframe 页面中的框架
所以我一直在使用这个 http://www.facebook.com/connect/prompt_feed.php?api_key=2231777543&message=@[undefined:0:]
Facebook API 向我的 Facebook 发帖。但最近它似乎没有接受“消息”帖子。所以我想我可以将该 API 放入 Iframe 中,并将数据从我的表单传递到 API 中的表单。
我知道我可以在那里输入,但我需要能够为我的项目和任何未来的参考这样做
So I have been using this http://www.facebook.com/connect/prompt_feed.php?api_key=2231777543&message=@[undefined:0:]
Facebook API to make posts to my Facebook. but recently the it doesnt seem to be taking 'message' posts. So I figured I could put that API into an Iframe and pass the data from my form to the form in the API.
I Know I can just type in there but I need to be able to do it this way for my project and any future reference
如果这是针对在 Facebook 页面上运行的 iFrame 应用程序,您可以传递一个 app_data 字段,后端脚本可以提取该字段供您使用。
查看此 FB 博客文章:
https://developers.facebook.com/blog/post/462< /a>
If this is for an iFrame app running on a Facebook page you can pass an app_data field that a backend script can extract that you can use.
Check out this FB blog post:
https://developers.facebook.com/blog/post/462