Comments (8)
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.
Please refer to the example app for inspiration: http://svn.xp-dev.com/svn/facebook_example_app/
from cakephp-facebook-plugin.
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.
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.
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.
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.
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.
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)
- Integrate plugin with custom user management mechanism HOT 1
- Avoid exception
- Facebook mobile connect does not work. HOT 3
- FB Api Not Working, Update the Facebook SDK on Vendors Folder with Newest SDK HOT 1
- Documentation update HOT 1
- Timeout after 5 minutes
- User getting logged in automatically HOT 3
- Helper/Plugin isn't loaded HOT 4
- Fatal Error (1): Call to a member function share() on a non-object in HOT 1
- Iam using CakePHP-Facebook-Plugin(3.1.1) Now Facebook Releases Graph API v2.0 HOT 2
- logging out using logout url does not logout facebook user HOT 2
- get facebook user data using login with facebook HOT 4
- Multiple FB apps
- Storing additional data to user row after login
- Connect->user() returns null on chrome
- afterFacebookLogin does't work HOT 1
- It's not an issue but seeking help on getting and saving user data while facebook login.
- Permissions login does not work HOT 1
- Question
- Internationalization is not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-facebook-plugin.