Facebook iFrame Frustrations... Any Suggestions

by rhab
5 replies
I guess this forum would be appropriate to cover fb iframes since many of us are doing them for local clients.

I have an issue that I'm sure is dead simple that I'm just overlooking and hoping I can find a solution here.

I have a fanpage setup. I have the page set to display the app page as the default. I have a reveal page setup which works.

The issue is this, when logged out, the reveal page will show. When logged in however, even when I have NOT liked the page, the page's wall keeps showing up instead of the reveal page which is set as default.

I have to be doing something wrong or missing some simple setting. Can anyone give me advice as to what may be the problem? This has become a real headache!
#facebook #frustrations #iframe #suggestions
  • Profile picture of the author SgtBadass
    It could be a 'Facebook Thing'. I've had a bunch of issues with pages and eventually they've just gone away.

    If you've set the Default Tab as your welcome tab then it should just work, as far as I know there's nothing else to choose.
    Signature

    Free mini-guide to offline marketing : http://www.sembusinesstactics.com/

    {{ DiscussionBoard.errors[3638395].message }}
  • Profile picture of the author Just_Mel
    For some reason I've noticed when you are logged in and trying to look at your own page, this is what happens. Try logging out and have a friend log in - they should see your default set up - not your wall.

    Hope this helps

    Originally Posted by rhab View Post

    I guess this forum would be appropriate to cover fb iframes since many of us are doing them for local clients.

    I have an issue that I'm sure is dead simple that I'm just overlooking and hoping I can find a solution here.

    I have a fanpage setup. I have the page set to display the app page as the default. I have a reveal page setup which works.

    The issue is this, when logged out, the reveal page will show. When logged in however, even when I have NOT liked the page, the page's wall keeps showing up instead of the reveal page which is set as default.

    I have to be doing something wrong or missing some simple setting. Can anyone give me advice as to what may be the problem? This has become a real headache!
    Signature

    "I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself." - D.H. Lawrence
    {{ DiscussionBoard.errors[3638413].message }}
  • Profile picture of the author Headfirst
    The old way of doing it doesnt work. You need to interact with the graph API to do it successfully.

    Here's my 30 second into to "like locking" content.

    STEP 1. Get the facebook.php from the latest version of the API SDK from here https://github.com/facebook/php-sdk/tree/master/src

    You only need the facebook.php file. Place this file in the same directory as your iframe app.

    Step 2. Use the following code in your iframe app:

    <?php
    require 'facebook.php';
    $app_id = "YOUR-APP-ID";
    $app_secret = "YOU-APP-SECRET";
    $facebook = new Facebook(array(
    'appId' => $app_id,
    'secret' => $app_secret,
    'cookie' => true
    ));

    $like_status = $signed_request["page"]["liked"];

    if ($like_status) {

    //Put everything for FANS here

    } else {

    // Put everything for non-fans here

    }
    ?>


    That's pretty much it. It works great. Enjoy!
    {{ DiscussionBoard.errors[3638682].message }}
    • Profile picture of the author rhab
      Thanks guys. I'll keep trying and see how it goes. The weird thing of it is that my own page is working fine. But the page I'm helping my friend with is the one giving me the issue.

      I'm just hoping I can iron it out soon so I can start doing them for clients!
      {{ DiscussionBoard.errors[3640329].message }}
      • Profile picture of the author Headfirst
        Originally Posted by rhab View Post

        Thanks guys. I'll keep trying and see how it goes. The weird thing of it is that my own page is working fine. But the page I'm helping my friend with is the one giving me the issue.

        I'm just hoping I can iron it out soon so I can start doing them for clients!
        Shoot me a pm with some links and I'll be happy to check it out
        {{ DiscussionBoard.errors[3640403].message }}

Trending Topics