Fatal Error when adding Custom Tab on Facebook Page - facebook

With Facebook SDK V5, I'm trying to develop a php script who list all my pages where I'm admin. Then the goal is to add a Custom Tab on the selected Facebook page.
The first part works well but when I'm trying to add the Custom Page, I have a Fatal Error.
I want to clarify that I already develop this king of script with SDK V4 (who works well). So my 2 facebook apps are well configured (manage_pages is ok for install and Secure URL of the Page tab is complete).
This is the lines of code who generate the Fatal Error:
$addTab = $fb->post('/' . $page['id'] . '/tabs', array('app_id' => 'myappid'), $page['access_token']);
$addTab = $addTab->getGraphNode()->asArray();
print_r($addTab);
The contents of $page['id'] and $page['access_token'] are OK. When I test the Acccess Token, it's also ok.
When I execute the script and try to add the custom tab, I have this message:
Fatal error: Uncaught exception 'Facebook\Exceptions\FacebookAuthenticationException' with message '(#33) This object does not exist or does not support this action' in /home/web/...
I don't understand the problem, so any help is welcome and will be of great help to me. Thank you!

Related

Magento Checkout is stuck on Billing information step

I am new to the magento, and right now, i was working one website.
I did my initial development on my local machine and everything was fine. few days ago I moved the website into test server from my localhost. after that the checkout function is not working properly.
the problem is that i have almost have nothing on that page.
if user is not logged in, then he(she) sees 2 steps as log in, and billing information, but without content. only the titles.
if user is logged in, then he(she) sees step 1 billing information title, and again no content
the website is http://guerrilla.webionaria.com/
user:teste#mail.ru
password:testtest
can anyone help me with this please
There is a 'Fatal error' on your page.
The rendering stops with
var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id',
The error appears in app/design/frontend/{interface}/{theme}/template/checkout/onepage/billing.phtml or in app/design/frontend/{interface}/{theme}/template/persistent/checkout/onepage/billing.phtml (if you have cart persistence enabled).
In both of the cases, for some reason this code gives an error:
<?php echo $this->helper('directory')->getRegionJson() ?>
To find out what the error is you need to enable error reporting and display_errors.
You can do that from index.php.
error_reporting(E_ALL | E_STRICT);
...
ini_set('display_errors', 1);
You can also enable the developer mode by changing this:
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
to this
//if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
//}
Then try again. If the error does not appear on your screen look at the source of the page.
If the error does not tell you anything update the question with its contents.
Just installed Magento for the first time on my Localhost. And found the same problem. I found the solution in following way:
-- Enabled the error logs in System > Configuration > Developer Tools
-- Then attempted a checkout.
Bam! found the error in var/logs/system.log
The error was due to SOAP. I needed to enable PHP's soap library. And it proceeded well.
Hope it helps someone :)

Alfresco Share: Using ALfresco.Util.PopupManager in my customized Login page

I am working on customizing Alfresco Share for Business purpose. So I have Customized and Overridden the default login page. But now I want to show the pop up a message for invalid logins in the same way as ALfresco Share does. Going through the core files I found it makes use of ALfresco.Util.Popupmanager and Alfresco.Util.Message. So I included the alfresco.js file and copied the portion of the code from slingshot-login.ftl where it uses ALfresco.Util.Popupmanager.displayprompt, but when I deploy it, rendered the page and issued an invalid login I got the following error:
Alfresco.messages.global is null var globalMsg =
Alfresco.messages.global[p_messageId];
Kindly help.
What is your p_messageId?
This is should work:
Alfresco.util.PopupManager.displayPrompt(
{
text: "My message here"
});

facebook connect pluggin in cakephp

I am using "webtechnick CakePHP-Facebook-Plugin" for my site for login and authentication. My site is in cakephp. I have placed the plugin in proper folder as guided in the video. But when I am running my site I am getting the error:
Fatal error: Call to undefined method Facebook::login() in
/home/depasser/public_html/var/www/html/fb_app/app/views/elements/login.ctp on line 12
I have tried a lot to solve this issue but haven't succeeded. Can anyone guide me how I can solve this issue?
Is the helper in your controller for this view, if the 'Facebook.Facebook' helper is not there it wont work.

Request Dialog CRASHED?

Recently, Facebook has updated the component "request dialog" assigning responsibility to the exclusion of requests to the developers (http://developers.facebook.com/docs/reference/dialogs/requests#deleting). He also made other adjustments to the format of the request id. Thus added configuration option "request 2.0 efficient" on menu of the application developer.
The problem started after this change , the component "request dialog Multi - Friend- Selector" is in serious trouble. The component is crashed while trying to load friends. Sometimes friends loads, but the component does not resize height.
See the image of the errors:
Crashed before load friends:
http://postimage.org/image/glk2mf3bb/
Resize fail
http://postimage.org/image/iobduhn41/
In chrome browser component generates the following error:
s-static.ak.facebook.com/rsrc.php/v1/yS/r/syXGEAW5WYH.js:36 Uncaught TypeError: Cannot read property 'origin' of undefined
In firefox generates following error:
Erro: Permission denied to access property 'DocRPC'Arquivo-fonte: https://s-static.ak.facebook.com/rsrc.php/v1/yS/r/syXGEAW5WYH.js Linha: 36
Can you reproduce the error with the code itself Documentation
http://developers.facebook.com/docs/reference/dialogs/requests
Help please.
Seeing same errors here, but I can add some info:
It does seem to work if you use the basic example in https://developers.facebook.com/docs/reference/dialogs/requests, which opens up the dialog in a new browser window.
In Chrome, I found an additional error message to the one you posted:
"Unsafe JavaScript attempt to access frame with URL [...] from frame with URL [...]facebook.com/dialog/apprequests. Domains, protocols and ports must match."
From all that I guess the error may be related to the dialog display mode (read https://developers.facebook.com/docs/reference/dialogs). Within my app, I am getting this error exactly as you do, unless I set display to something like 'popup', in which case everything works (but a new borwser window is opened). The docs do state that "Because of the risk of clickjacking, [iframe] is only allowed for some certain dialogs, and requires you to pass a valid access_token." Well, passing access tokens did no good for me.
Little question: are you using some toolkit like GWT?

Error when navigating to user auth page

The facebook C# SDK generates an url that looks like this:
http://m.facebook.com/logout.php?next=http://www.facebook.com/dialog/oauth/?response_type=token&display=popup&scope=user_about_me&client_id={MY APP ID}&redirect_uri=http://www.facebook.com/connect/login_success.html&confirm=1
(obviously I've set the APP id in the real code).
Problem is that the lougout page presents a very generic error message "An error occurred. Please try again later.". If I cut the oauth part out and navigate to that, oauth works fine. But it seems like the NEXT parameter isn't really panning out.
Any pointers? This is with the latest 5.0.9 (BETA) build of the SDK.
I was having the same issue. What I did was remove the braces (the '{' and '}') from the App Id to get it to work. Hope that helps