05-01 19:11:11.919 8750-8772/com.code2care.myapp D/GraphRequestοΉ Facebook : Warning: Request without access token missing application ID or client token
If you are getting the above error message in your Android Studio then the reason is that you have not specified the application Id in your AndroidManifest.xml file.
Also check that if you are using FacebookContentProvider to share something then you must provide the app id in com.facebook.app.FacebookContentProviderXXXXXXXXXXXXXXX :
Manifest Snippet :provider android:authorities="com.facebook.app.FacebookContentProviderXXXXXXXXXXXXXXX"
android:name="com.facebook.FacebookContentProvider"
android:exported="true"/>
Also check that your key hash is correct, if not generate by calling this function in onCreate() method of your Activity.
File : KeyHash.java Snippetprivate void getFbKeyHash(){
PackageInfo info;
try {
info = getPackageManager().getPackageInfo(
"your.package.name", PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md;
md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
String hashString = new String(Base64.encode(md.digest(), 0));
System.out.println("App KeyHash : " + hashString);
}
} catch (Exception e) {
Log.e("exception", e.toString());
}
}
More Posts related to Facebook,
- Facebook Down Will Be Back Soon
- Facebook Thanks for stopping by! We hope to see you again soon.
- How to turn off Facebook autoplay videos on timeline
- Facebook | Error : Sorry, something went wrong We're working on it and we'll get it fixed as soon as we can
- Facebook Graph API Unavailable
- Facebook : Warning: Request without access token missing application ID or client token
- Share Story Feed on Facebook using URL
- How to stop disable Facebook video autoplay during scroll
- Is Facebook is down? Is it just for me?
- Steps to Integrate Latest Facebook SDK with your Android Application
More Posts:
- How to check your installed version of Git - Git
- Notepad++ select all above or below lines - NotepadPlusPlus
- [Mac] How to Mute People in a Microsoft Teams Meeting - Teams
- Android Studio Button onClickListener Example - Android-Studio
- How to come out of Full Screen Mode Roblox on Mac - MacOS
- How to change background color in Notepad++ - NotepadPlusPlus
- Mac - Open Finder App using Terminal Current Location - MacOS
- How to change SharePoint Online site collection or subsite URL address - SharePoint