pavelk2 / social-feed

JavaScript plugin that shows a user feed from the most popular social networks
http://pavelk2.github.io/social-feed-example/
MIT License
960 stars 303 forks source link

Facebook array problem #78

Closed mskayali closed 8 years ago

mskayali commented 9 years ago

I create an app in facebook than I get app-id and app-secret but only facebook array doesn't work.

           $('.social-feed-container').socialfeed({
                        // FACEBOOK
                        facebook:{
                            accounts: ['@username','#username'],
                            limit: 10,
                            access_token: '143775004980049|b437aa4b0c0c0c06a8f6c0c0cc80e6299' // APP_ID|APP_SECRET
                        },
                        // BLOGSPOT
                        /*blogspot:{
                            accounts:['@iman-khaghanifar']
                        },*/
                        // GENERAL SETTINGS
                        length:400,
                        show_media:true,
                        // Moderation function - if returns false, template will have class hidden
                        moderation: function(content){
                            return  (content.text) ? content.text.indexOf('fuck') == -1 : true;
                        },
                        //update_period: 5000,
                        // When all the posts are collected and displayed - this function is evoked
                        callback: function(){
                            console.log('all posts are collected');
                        }
                    });
pavelk2 commented 9 years ago

do you leave accounts as "@username" and "#username"? Or do you put there something? Try to put there "@barack.obama" and see if you receive any posts.

mskayali commented 9 years ago

Absulitly not. I use my own account name and my app id and secret code. also github demo codes doesnt get the facebook array in my browser. But other social media array comes.

mskayali commented 9 years ago

There is no console bug in chrome..

pavelk2 commented 9 years ago

I really want to help, but i don't understand the problem. 1) does it work for you when you use the facebook access_token to show posts from the account "@barackobama"? 2) does it work for you when you use your own facebook access_token to show posts from the account "@barackobama"? 3) does it work for you when you use your own facebook access_token to show posts from your account? 4) does it work for you when you use the facebook access_token to show posts from your account?

pavelk2 commented 8 years ago

As there were no further requests - I close this issue.