I am facing one issue in publishing post via facebook app using sdk in android.
When I am trying to post something, it gives me toast message like"(#100) invalid fbid". and Log is printed as : Error: com.facebook.FacebookException: Error publishing message.
Please note: I have added Publish Permission,My FB App is visible to all Users and most Importantly,I have made a demo using same app id,package name and all and it is working there,but when I am merging that code in app,It always ends up in the error.
So,What could be the cause?Because same code,same fb app id is working fine in separate app,but not working when merged in the application.
Please suggest what should I do?
Thank you in advance.
SOLVED.There was mistake in manifest.xml...We should write android:value="app_id".I have written android:resource="app_id"..So it was error of class casting between Integer and String.
Related
I want to share a simple link from my android app.
I followed the getting started guide from Facebook and all seem okay in my app since I can open the share dialog.
I imported FacebookSDK project and linked library
I set my appproperly (package/class name and dev hash keys)
My manifest has right permissions and meta-data
Additional infos :
I use a real device for debug
I run a test app as admin
I'm running a simple share code sample from an activity
I had troubles to generate hash keys but that post helped me. I got an error saying XXX key (different from the one I generated) doesn't match.
Then I tried the method explained here (at the end) to log another key.
Since now, I just get a toast saying "Something went wrong. Please try again."
What am I doing wrong ?
So I solved my problem thanks to another post. The problem is I was trying to generate a key outside my main (first) class.
Please bear with me as I am a complete noob and trying to create a database for my app using App Inventor.
According to Google App Launcher, I have successfully created my app. However, when I load mcdougaltextspeak.appspot.com into my browser, I get the following message:
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
I am following the directions provided on http://appinventorapi.com/program-an-api-python/ and I'm sure my issue is because I am not correctly modifying the default app.ymal file
Here's what I have according to the directions:
application: textspeakedtech597
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /images
static_dir: images
- url: .*
script: main.py
I initially just changed myapp to mcdougaltextspeak, however I got a message that I needed to modify the code for python 2.7 according to this site:
https://developers.google.com/appengine/docs/python/python25/migrate27
This site also included modifications for other things, so I am wondering if my error stems from this. The directions do not make note of modifying any other code. Do I need to modify/add the code that appears on the migrate to python 2.7 page (see above link) and if so where does it go.
My app is stuck without a location to hold data.
Any advice on how to proceed is greatly appreciated.
Have you actually created an app on https://appengine.google.com?! You need to do that first, then your app.yaml should contain the appid that you have created i.e. application: mcdougaltextspeak & not what it is in the tutorial.
After you've edited the app as you want, you must then deploy the app to the Google App Engine Servers (refer to the GUI deploy). You would get detailed logs when deploying, which would tell if the deployment was successful or not.
After deploying, you can then goto https://mcdougaltextspeak.appspot.com & play around with your online app. If you still get errors, check https://appengine.google.com/dashboard?&app_id=mcdougaltextspeak for the logs & report them here.
When i run the Sample Android App from Facebook SDK 3.0 for Android i'm getting the error page "Misconfigured for Facebook Login. Press Okay to go back to the application without connecting to Facebook".
There is already a Facebook app in the device, if i uninstall that app the sample app getting me to login page of facebook. In logcat im getting the Error as " Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider". I have given the hash key in dash board of facebook and also given the APP ID in the app. In dashboard i didnt find any option like enabling Single Sign on.
This might be a duplicate question. But i'm unable to find the solution to make the sample app run even a facebook app already exists in device. Help me to sort it out. Thanks in advance.
In the developer dashboard, under "Native Android App", you also need to set "Facebook Login" to "Enabled". "Facebook Login" is the new name for "Single Sign on".
If that does not work...
If you are logging in with a Session, try adding this code to your Session.StatusCallback call method:
if (exception != null) {
exception.printStackTrace();
}
If you are using LoginButton to log in, implement LoginButton.OnErrorListener with the above code, and add the listener when the LoginButton gets created.
The resulting logcat should give you more information about what the problem is.
Regarding the "Failed to find..." error:
Use a real device and make sure you have the latest version of the Facebook app installed. The Facebook app included in the sdk is not recent enough to support attribution ids.
Follow the step 4 correctly from the following link :-
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/
I think you have missed the keytool part from it where you have to add key hash to your developers account or you are not importing the FacebookSDK library in sample project.
I've built the code from this tutorial and it worked fine. But today the application asked me to aprove some unknown permissions(but i didnt add any permissons or anything else to my code) and showed error message after I clicked "ok" button:
Error detected in Appname. Please try again later.
API Error code: 100
API Error Description: Invalid parameter
Error Message: Requires valid redirect URI
What wrong with it? Where this redirect URI should be set?
PS: onCancel method of DialogListener is been calling during the error.
Update: I've found the issue on facebook bug tracker.
"Enhanced Auth Dialog" should be disabled in application settings to solve the issue.
Removing the Facebook application updates could also help.
HI Friends,
I implemented facebook connect in android using facebook-android-sdk. Most of the times I am getting error while i am publishing.
Less number of times publish is working fine.
Publish story window is opening good with What's on your mind text box. When i am clicking on the publish button in the Publish story window, i am getting error.
The error is constantly changing when i coming(clicking ) to next time.
some of the the errors i have been seen in my application when i am clicking in the publish button are.
Error Examples:
1. An error occurred with Holyplanets Connect.please try again later
An error occurred with WordpressBlog Connect.please try again later
An Error occurred with UFOS ON EARTH. Please try agian later
How can i fix this error? If anybody knows please let me know.
Thanks and Regards,
Kiran
I think this could be a fault with Facebook.com.
I started getting this yesterday in my iOS app which has been out for months.