ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Facebook Ignited

May 01, 2011 4:28am

Subscribe [48]
  • #31 / Jul 22, 2011 8:56am

    deth4uall

    77 posts

    https://bitbucket.org/deth4uall/facebook-ignited/wiki/API Here is the API Documentation.
    The delimitation is for when facebook throws multiple requestids. They will be separated by commas, so I have made sure to compensate for that.

    You can use fb_list_friends($value=“uid”) for getting the list of Users IDs for your friends who are also users of the app.

    and then you use $request as a variable in the graph call but it is never defined???

    You are have an older version, I fixed that in v1.0.5.

  • #32 / Jul 22, 2011 9:32am

    DougW

    49 posts

    Thanks! I think I have everything working now.

  • #33 / Jul 22, 2011 9:35am

    deth4uall

    77 posts

    I am working on the code for v1.0.6, adding some extras and expanding the usability of the functions already stated, for example for fb_get_app() you can now declare which global you want to call, as well as choose if you want your full friends list from fb_list_friends().

  • #34 / Jul 22, 2011 9:44am

    DougW

    49 posts

    That’s great! I was looking for a full-friends list function, then realized that your function actually did what I wanted. 😊 I was also going to suggest that the fb_set_globals method in fb_ignited be made private. Just for security… 😊 If you’re interested, my app is called tellsocial. (http://www.tellsocial.net). I can make you a tester if you want to see your code in action!

  • #35 / Jul 22, 2011 9:45am

    deth4uall

    77 posts

    Thanks for the suggestion mate, I will make it a private function.

  • #36 / Jul 22, 2011 9:49am

    DougW

    49 posts

    BTW,I have 1.05 and I still have this line…

    $ch = curl_init(“https://graph.facebook.com/” . $request . “?access_token=”.$session[‘access_token’].”“);

    in fb_ignited.php. Yet $request is not defined.

  • #37 / Jul 22, 2011 9:52am

    deth4uall

    77 posts

    Ah ok, then you can download the file from my repository, it should have the updated version.

  • #38 / Jul 26, 2011 2:31pm

    DougW

    49 posts

    The FB ignited samples run fine, so I ‘borrowed’ code to request a send message function. My JS code is as follows:

    function sendMsg(user) {
        FB.ui(
            {
                method: 'send',
                to: user,
                link: ''
            },
            function(response) {
                if (response && response.post_id) {
                    alert('Message was sent.');
                } else {
                    alert('Message was not sent.');
                }
            }
        );
    }

    This seems to work fine but when I click on send to send the message, I get a Facebook error:

    “Sorry, something went wrong.
    We’re working on getting this fixed as soon as we can.”

    I cannot tell whether this is really a Facebook error or something in my code or the library. Has anyone else used fb ignited to do a send message request?

    Thanks!

  • #39 / Jul 27, 2011 10:46pm

    deth4uall

    77 posts

    FB Ignited is a PHP extension, I have not included the JS into it, except for examples.

  • #40 / Aug 19, 2011 12:00am

    DougW

    49 posts

    I have another issue and it may be related to my bad implementation of your good code. 😊

    One of my apps, tellsocial, can be run as fb.tellsocial.net. When you do this, your code auto-launches facebook and logs you in and keeps you in facebook as tellsocial is designed to be a facebook app. But, if you leave facebook, keep your browser open and type fb.tellsocial.net again, it runs outside of facebook. I assume this is because your facebook credential cookies are still set until you close your browser.

    I’d like to fore the app to always be run in facebook. I can check to ensure that my app is running in an iframe, but that won’t prevent folks from running it in their own iframe as iframe content cannot read any data (even urls) from their parents. What would be great is a switch or config option in fb_ignited that forces an app to be running inside facebook only.

    Is this easy to do? Or can I do it now and I am just missing something obvious?

    Thanks for a great app! Tellsocial is getting good traction.

  • #41 / Aug 22, 2011 6:40am

    deth4uall

    77 posts

    I will need to make sure that the system is checking the head window location, I have been busy lately working as a perl developer but I will try to release v1.0.6 soon. Thanks for the input on that, I will definitely fix that issue soon.

  • #42 / Aug 22, 2011 12:30pm

    DougW

    49 posts

    What I did as a quick fix was check in my main controller that the referrer is Facebook.com. If it is not, it reloads. The elegant solution would be a configuration parameter but I am not sure whether that is practical or not.

  • #43 / Aug 23, 2011 1:40am

    DougW

    49 posts

    I noticed in my app and then on your test page as well that one cannot called the ‘Send a Request’ code twice? The first time a user clicks the friends box comes up. After that it is dead until user refreshes the page. I realize this is probably javascript issue rather than an FB Ignited issue, but I thought perhaps you had come across it as well?

  • #44 / Aug 23, 2011 11:14am

    deth4uall

    77 posts

    I hadn’t really noticed to be honest, since that is written in the javascript sdk and I am not as versed in how it works lol.

    I am planning on making a purely PHP version of it, but I haven’t decided how yet, since it requires a few methods to be used lol.

  • #45 / Aug 23, 2011 11:37am

    DougW

    49 posts

    OK. Thanks. You can check out my other app at https://apps.facebook.com/presenternet. For room name just type in dogdemo. Thanks for some great help in getting FB aligned with Codeigniter.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases