MyBB Community Forums

Full Version: MyBBPublisher v2.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
try uploading the plugin again. there are no access settings, so it should just work,unless you have another plugin that is trying to set certain parameters in that menu and overriding my settings
I tried lots of times, also I couldn't find any errors in the error log. I only have the additional "my shoutbox" plugin in tools and maintenance. Changing the key didn't work also... it just changed the menu position.

I've put a message here:

function mybbpublisher_admin()
{
	global $mybb, $db, $page, $lang, $cache, $config;

	if($page->active_action == "mybbpublisher")
	{
		/****************************************************************
		Facebook corrections to input parameters so we know where we are
		****************************************************************/
		  echo "<script>alert('Information updated')</script>";

		if($mybb->input['code']) //if code exists, user gave permission, insert needed inputs as FB wont return them
		{

And it doesn't display it... it seems it doesn't enter that function for some reason.

When I click on MyBB Publisher the active action "$page->active_action" is "dashboard".. not mybbpublisher

FIXED: Replaced "tools-mybbpublisher" with "tools/mybbpublisher" Toungue let's see now what it can do...
which shoutbox plugin? Open that plugin and find

$plugins->add_hook("admin_tools_action_handler", "XXXXXXX");

and then copy/paste the actual function "XXXXXXX" here for me to look at. it may be a conflict.

Thanks for your help, I fixed that problem. Now it says:

"You do not appear to be the administrator of any apps, pages or groups." - and I am the administrator of a facebook app...
Facebook does not think you are, at least not with the account in which you are currently logged in under or that you used to setup the plugin. I suggest that you log out of Facebook, clear your cookies and then restart your browser. Then try to setup the plugin (all steps, in order).

This will force you to log into Facebook to give permissions.

Also, be sure the configuration settings in ACP > Configuration > Settings > MyBBPublisher are properly set for the Facebook items.

Thanks, I managed to make it work. There were some error getting the access token so I got it manually (using some other auth links found on google) and simply put it in the php.

Quote:$fb_url = 'https://graph.facebook.com/me/accounts?access_token=my_token

This is how I got it, a little different then in your plugin (it's a post I found )
Quote:3 down vote


Just to clarify -- after you call

https://graph.facebook.com/oauth/authorize?

you should receive a CODE which, in conjunction with your CLIENT_ID and CLIENT_SECRET (assuming you have registered your application) can be exchanged for an access_token at

https://graph.facebook.com/oauth/access_token?

If this is indeed how you came by your ACCESS_TOKEN, you should then be able to request

https://graph.facebook.com/me/


Now my question is, does the access token changes ??? I tried to log off and use other browsers and it seems that it's working.
the access token is tied to your account, so once the plugin stores it, you are good on any browser.
Well then, Thanks you for this wonderful plugin
you are welcome and glad you got it working.
I found this:

Quote:If the user changes their password, the access token expires or the user deauthorizes your app in the App Dashboard, the Graph API will issue an HTTP 400 and return the error in the body of the response

Guess I'll be careful to update it if I change my password Smile Thanks again.