EllisLab text mark
Advanced Search
3 of 11
3
   
Poll
Should I make the repository Spark friendly?
Yes 5
No 2
Branch off and create a "full" branch. 3
Total Votes: 10
You must be a logged-in member to vote
Facebook Ignited
Posted: 22 July 2011 09:32 AM   [ Ignore ]   [ # 31 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

Thanks! I think I have everything working now.

 
Posted: 22 July 2011 09:35 AM   [ Ignore ]   [ # 32 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
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().

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 22 July 2011 09:44 AM   [ Ignore ]   [ # 33 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

That’s great! I was looking for a full-friends list function, then realized that your function actually did what I wanted. smile I was also going to suggest that the fb_set_globals method in fb_ignited be made private. Just for security… smile 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!

 
Posted: 22 July 2011 09:45 AM   [ Ignore ]   [ # 34 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

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

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 22 July 2011 09:49 AM   [ Ignore ]   [ # 35 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 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.

 
Posted: 22 July 2011 09:52 AM   [ Ignore ]   [ # 36 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

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

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 26 July 2011 02:31 PM   [ Ignore ]   [ # 37 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 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',
            
touser,
            
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!

 
Posted: 27 July 2011 10:46 PM   [ Ignore ]   [ # 38 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
77 posts

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

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 19 August 2011 12:00 AM   [ Ignore ]   [ # 39 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

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

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.

 
Posted: 22 August 2011 06:40 AM   [ Ignore ]   [ # 40 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
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.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 22 August 2011 12:30 PM   [ Ignore ]   [ # 41 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 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.

 
Posted: 23 August 2011 01:40 AM   [ Ignore ]   [ # 42 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 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?

 
Posted: 23 August 2011 11:14 AM   [ Ignore ]   [ # 43 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-21
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.

 Signature 

Dark Prospect Games, LLC | Facebook Ignited on GitHub

 
Posted: 23 August 2011 11:37 AM   [ Ignore ]   [ # 44 ]   [ Rating: 0 ]
Joined: 2008-11-01
62 posts

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

 
Posted: 23 August 2011 07:48 PM   [ Ignore ]   [ # 45 ]   [ Rating: 0 ]
Avatar
Joined: 2008-02-13
112 posts

Hi All,
First of all. Thanks for you project.

I am having problem to configuring my application.

I am having this error

An error occurred with MyApp Please try again later.

API Error Code191
API Error Description
The specified URL is not owned by the application
Error Message
Invalid redirect_uriGiven URL is not permitted by the application configuration

my config files

// ci config.php
$config['base_url']    'http://example.com/myapp_folder/';

// Facebook Ignited
$config['fb_appid']    'my_app_id';

$config['fb_secret']    'my_secret';

$config['fb_canvas']    'myapp'// Fabook App Namespace 
$config['fb_apptype']    'iframe';

$config['fb_auth']    'email'

EDIT : the above config works now… but my app always reloading ?

 Signature 

Sorry for my pour english :(

 
3 of 11
3