GithubHelp home page GithubHelp logo

Comments (8)

webtechnick avatar webtechnick commented on June 29, 2024

Did you setup your Facebook application correctly? Do you have your configuration file setup within app/config/facebook.php? If so, I'd have to take a look at your view/layout page to determine what's going on.

from cakephp-facebook-plugin.

webtechnick avatar webtechnick commented on June 29, 2024

Please refer to the example app for inspiration: http://svn.xp-dev.com/svn/facebook_example_app/

from cakephp-facebook-plugin.

kevenages avatar kevenages commented on June 29, 2024

I've run into the same problem. My FB app is correct, config on the plugin correct.
I have verified that for the fanbox to work, I have to hardcode the appId into the function. Config:read won't read from facebook.php

from cakephp-facebook-plugin.

webtechnick avatar webtechnick commented on June 29, 2024

Please verify it is in the correct directory. It needs to be in your APP/config not in the plugin/facebook/config.php

Thanks,
Nick

from cakephp-facebook-plugin.

kevenages avatar kevenages commented on June 29, 2024

It is 100% in the correct directory.
If add configure:read I still get nothing. I modified helpers/facebook.php to read as follows:

function fanbox($options = array()){
debug('test' . Configure::read('Facebook.appId'));
$options = array_merge(
array(
'profile_id' => Configure::read('Facebook.appId'),
'stream' => 0,
'logobar' => 0,
'connections' => 0,
),
$options
);
return $this->__fbTag('fb:fan', '', $options);
}


The only thing that prints is test

from cakephp-facebook-plugin.

kevenages avatar kevenages commented on June 29, 2024

I should also mention that I don't have the plugin installed in app/plugins, but rather the parent plugin directory

from cakephp-facebook-plugin.

webtechnick avatar webtechnick commented on June 29, 2024

You must have not run the init in your layout. Make sure you run the $this->Facebook->init(); in your application layout as it will load and read the configuration file for the rest of the helper.

from cakephp-facebook-plugin.

kevenages avatar kevenages commented on June 29, 2024

Yea I did that too. I just ended up hardcoding it into the fanbox (not ideal I know).
Thanks much for your quick reply (as always :D)

from cakephp-facebook-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.