I Have integrated facebook sdk in my windows phone 8 app and used facebook controls after downloading from NuGet.
However when I navigate to that facebook page, I get a "TargetInvocationException" and goes to Application Unhandled method where the debugger breaks, and the app crashes.
This is the exception: "An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in System.Windows.ni.dll"
Do I need to do anything else after downloading refrences from NuGet?.
This exception is thrown by methods invoked through reflection, but without knowing more about you implementation it will be hard for anyone to help and advise.
Are you able to provide more information, in particular code snippets and details of the inner exception?
Related
I using google map on my app, and upload the code to my phone,
the problem is sometimes when I enter and exit to the map quickly,
the phone is not responding never !!! also I can't turn the phone off!!!
the only solution is re-upload the code again, only this is the solution to make my phone work!!
I try to see the output from the android studio, and I see like that
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Neither user 10737 nor current process has android.permission.WAKE_LOCK., null)
I wish you understand and help me!
The error clearly says that the app doesn't have the permission to unlock the phone by itself.
You should add the permission in your code and request it from the user.
If you search it on the net, you will find that Google maps in flutter sometimes needs the permission WAKE_LOCK.
You should add it to your manifest.
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!
I see some errors in my App dashboard(section 'API Stats', tab 'errors'), but it doesn't show the error code or a readable message error, only a graph showing the number of errors in each day. Is there any way to know the cause of the error for each call my app did?
I just downloaded a sample app for Windows 8 that should allow users to look through albums and upload pictures to facebook. When starting the app, I succeed in logging into my facebook, but right after logging in and displaying my profile picture, I get the following error:
"An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code
Additional information: Index was out of range. Must be non-negative and less than the size of the collection.
If there is a handler for this exception, the program may be safely continued."
The problem seems to occur at this line:
await GetUserProfilePicture();
The app is here: http://code.msdn.microsoft.com/Facebook-Photo-Albums-c9589b5a?SRC=VSIDE Would anybody be kind enough to download it and see what the problem is? You also need an App ID for it to function.
The error is on line 81, file FacebookInfoView.xaml.cs. When albuminfo list has no values i.e. count = 0 and if you call albuminfo[0], it's surely gonna throw System.ArgumentOutOfRangeException.
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?