开发者

I have no idea how to make request-form

开发者 https://www.devze.com 2023-02-03 20:34 出处:网络
I want to add request-form on my application to invite friends. I checked http://developers.facebook.com/docs/reference/fbml/request-form/

I want to add request-form on my application to invite friends.

I checked http://developers.facebook.com/docs/reference/fbml/request-form/ and I used Example PHP Invite Page code on server side as invited.php, but it just show blank page.I guess this code is old. facebook.php doesn't 开发者_如何学Pythonhave the method require_frame and require_login.

Please let me know how can I make request form.


Which method you are following???Iframe or FBML??

If Iframe then

<fb:serverfbml width="615">
<script type="text/fbml">
    <fb:request-form action="http://example.com/"
        method="POST"
        invite="true"
        type="Example"
        content="Blah Blah Blah <fb:req-choice url='http://example.com/' label='Join' />">
        <fb:multi-friend-selector showborder="false"
            bypass="cancel"
            cols=4
            rows=4
            actiontext="Select Facebook Friends"/>
    </fb:request-form>
</script>

If you are following FBML then

invite="true"
    type="Example"
    content="Blah Blah Blah <fb:req-choice url='http://example.com/' label='Join' />">
    <fb:multi-friend-selector showborder="false"
        bypass="cancel"
        cols=4
        rows=4
        actiontext="Select Facebook Friends"/>
</fb:request-form>

I am able to get the result in both cases..

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号