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]
  • #166 / May 29, 2013 6:56am

    Kobus M

    54 posts

    Hi @deth4uall,

    I have downloaded the latest version of FB Ignited, and the previous problem is gone regarding execution that stops. I see there was a update 3 days ago that updated the base_facebook file, perhaps that fixed it? Or maybe I had a way older version?

    Anyways,

    It still does not work; When I call “fb_is_liked()”, I get the following error:

    Fatal error: Uncaught FBIgnitedException: [0]: fb_is_liked() - exception caught: (#100) Page connection does not appear to be a valid ID thrown in /usr/wwws/users/promirzrwr/icmsdemo/application/libraries/Fb_ignited.php on line 387

    Looking at that line, I see this:

    384:        try {
    385:            $request = $this->facebook->api("/{$this->userid}/likes/APP_ID");
    386:        } catch (FacebookApiException $e) {
    387:            throw new FBIgnitedException('fb_is_liked() - exception caught: ' . $e->getMessage(), $e, $this->globals['fb_logexcept']);
    388:        }

    The problem as far as I can tell is in line 385 though - APP_ID does not seem to be right. So, I changed it to this:

    385: $request = $this->facebook->api("/{$this->userid}/likes/{$this->globals['fb_appid']}");

    I now get this output, including some errors:

    Array
    (
        [data] => Array
            (
            )
    
    )
    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Trying to get property of non-object
    
    Filename: libraries/Fb_ignited.php
    
    Line Number: 390
    
    Array
    (
        [message] => Welcome back, Kobus!
        [liked] => 
    )

    As you can see, it does not find any “Like” data for the app.

    Am I doing something wrong, or is there indeed another problem? I mirrored the code in the Ignited download exactly in my code, and added the necessary config settings, but I am not getting any joy…

    Regards,

    Kobus

     

  • #167 / Jun 13, 2013 4:47pm

    deth4uall

    77 posts

    Thank you for reporting this, this has been on my todo list and I have been researching how Facebook changed their APIs. I hope to find a solution soon, if you want put a issue on github and I will see it and keep track. Thanks!

  • #168 / Jul 01, 2013 6:29am

    deth4uall

    77 posts

    Release v1.3.2

    - Rewrote the commenting of Facebook Ignited to match PHPDoc Standards
    - Removed fb_post_to_feed_dialog, fb_request_dialog() and fb_send_dialog() in order to seperate the SDKs
    - Coding Standards for Facebook Ignited now require 4 spaces and absolutely no tabs.
    - Added the .idea folder for users to use with IntelliJ Idea products by JetBrains like PhpStorm.
    - JetBrains has offered licensing to all contributers of the Facebook Ignited project.
    - Added a new configuration option ‘fb_pageid’ for the devs to add the id of the Facebook Fanpage of their applications.

    Please note that I need to add this to the changes log but you will now see a `$config[‘fb_pageid’]` option in config, this will allow you to specify the id of the fan page for your app. Since Facebook has split pages off of apps, you now have to specify each id as separate. Since I was behind on the documentation I had to sift through it all until I was able to find it. Hope it helps!

    Regarding the Licensing of JetBrains IDEs: If you are a contributor you will need to fork my repo at GitHub and continue to do so to qualify for the open source license. It is only valid for use for this project, any other use is prohibited and can easily cause the license to be revoked. The license is renewed yearly and if you are not contributing then you will not have access to the renewed license. If you meet all of the above requirements, you may contact me at my admin@ email that is located at my darkprospect.net domain for information about this. For information about PhpStorm you can find the page here: http://www.jetbrains.com/phpstorm/ License is good for any of the IDEs, but again must only be used in relation to this project.

    Enjoy!

  • #169 / Aug 01, 2013 6:36pm

    hyperfire

    53 posts

    Guys, I may be asking something dumb, but I’m trying to do a simple graph call, and it’s not working

    <a href="https://graph.facebook.com/?ids=100005817664475,100005807824550&fields=name,picture">https://graph.facebook.com/?ids=100005817664475,100005807824550&fields=name,picture</a>

    I have tried:

    // ($r is a csv id list as in above code)
    $this->fb_ignited->api('/?ids='. $r . '&fields=name,picture','GET');

    What’s wrong? Thanks

    Edit: Solved, after a couple minutes with 200% focus I’ve figured it out:

    $this->fb_ignited->api('/', 'GET', array('ids'=>$r, 'fields'=>'name,picture'))
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases