Android faces on facebook

Android faces on facebook

Facebook SDK for Android

This open-source library allows you to integrate Facebook into your Android app.

Learn more about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more at https://developers.facebook.com/docs/android

  1. Check-out the tutorials available online at https://developers.facebook.com/docs/android/getting-started
  2. Start coding! Visit https://developers.facebook.com/docs/android/ for tutorials and reference documentation.

The SDK is separated into modules with the following structure.

Facebook SDKs are broken up into separate modules as shown above. To ensure the most optimized use of space only install the modules that you intend to use. To get started, see the Installation section below.

Any Facebook SDK initialization must occur only in the main process of the app. Use of Facebook SDK in processes other than the main process is not supported and will likely cause problems.

Facebook SDKs are published to Maven as independent modules. To utilize a feature listed above include the appropriate dependency (or dependencies) listed below in your app/build.gradle file.

You may also need to add the following to your project/build.gradle file.

You can also visit our Facebook Developer Community Forum, join the Facebook Developers Group on Facebook, ask questions on Stack Overflow, or open an issue in this repository.

See the SECURITY POLICY for more info on our bug bounty program.

We are able to accept contributions to the Facebook SDK for Android. To contribute please do the following.

  • Follow the instructions in the CONTRIBUTING.md.
  • Submit your pull request to the main branch. This allows us to merge your change into our internal main and then push out the change in the next release.

Except as otherwise noted, the Facebook SDK for Android is licensed under the Facebook Platform License (https://github.com/facebook/facebook-android-sdk/blob/main/LICENSE.txt).

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an «AS IS» BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

By enabling Facebook integrations, including through this SDK, you can share information with Facebook, including information about people’s use of your app. Facebook will use information received in accordance with our Data Use Policy (https://www.facebook.com/about/privacy/), including to provide you with insights about the effectiveness of your ads and the use of your app. These integrations also enable us and our partners to serve ads on and off Facebook.

You may limit your sharing of information with us by updating the Insights control in the developer tool (https://developers.facebook.com/apps/[app_id]/settings/advanced).

If you use a Facebook integration, including to share information with us, you agree and confirm that you have provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy). You further agree that you will not share information with us about children under the age of 13.

Читайте также:  Управление андроид по вайфай

You agree to comply with all applicable laws and regulations and also agree to our Terms (https://www.facebook.com/policies/), including our Platform Policies (https://developers.facebook.com/policy/) and Advertising Guidelines, as applicable (https://www.facebook.com/ad_guidelines.php).

By using the Facebook SDK for Android you agree to these terms.

Источник

Getting Started with the Facebook SDK for Android

This documentation explains how to get started integrating your Android app with Facebook by using the Facebook SDK for Android. The current version of the Facebook SDK for Android is version 12.0.0 and requires the Android API 15. For more information about versions and features, see Facebook SDK for Android.

Beginning with SDK v13.0, set to release in early 2022, a Client Token will be required for all calls to the Graph API.

You can set up your app to use the Facebook SDK for Android in the following ways:

  • By using the Quick Start.
  • By setting up your project with the Facebook SDK for Android.

Quick Start

To get a Facebook App ID, configure your app’s settings, and import the Facebook SDK for Android, click on the button below and follow the instructions.

Android Studio Setup

To use the Facebook SDK in an Android Studio project, add the SDK as a build dependency and import the SDK.

  1. Go to Android Studio | New Project | Minimum SDK.
  2. Select API 15: Android 4.0.3 (IceCreamSandwich) or higher and create your new project.
  3. After you create a new project, open Gradle Scripts | build.gradle (Project: and do the following:
    1. Add the following to the buildscript < repositories <>> section of the build.gradle (Project) file:
    2. Save and close build.gradle (Project: ) .
  4. Open Gradle Scripts | build.gradle (Module: app) and do the following:
    1. Add the following to the dependencies <> section of your build.gradle (module: app) file to compile the latest version of the Facebook SDK for Android:

      When you use the Facebook SDK, some events in your app are automatically logged and collected unless you disable automatic event logging. For details about what information is collected and how to disable automatic event logging, see Automatic App Event Logging.

      Add Your Facebook App ID and Client Token

      Add your Facebook App ID and Client Token to your project’s strings file and update your Android manifest:

      1. Open your /app/res/values/strings.xml file.

      2. Add a string element with the name attribute facebook_app_id and value as your Facebook App ID to the file. For example

      3. Open /app/manifests/AndroidManifest.xml

      4. Add a uses-permission element to the manifest:

      5. Add a meta-data element to the application element:

      Sending Images or Videos

      If you’re sharing links, images or video via the Facebook for Android app, you also need to declare the FacebookContentProvider in the manifest.

      Append your app id to the end of the authorities value. For example if your Facebook app id is 1234 , the declaration looks like:

      Running Sample Apps

      The following samples come with the Facebook SDK for Android:

      • HelloFacebookSample — Demonstrates profile access, status updates and photo upload.
      • RPSSample — Use Native Share Dialog, Open Graph publishing, pickers, invites, and deep linking.
      • Scrumptious — Login, requests, pickers, picture uploads, and Open Graph publishing.

      You can experiment with samples by importing the Facebook SDK into an Android Studio project. The samples have a project dependency rather than a central repository dependency via maven central or jcenter. This is so that when a local copy of the SDK gets updates, the samples reflect the changes.

      To run samples apps quickly, you can generate key hashes for your development environments. Add these to your Facebook developer profile for the sample apps. Keytool, for generating the key hashes, is included with the Java SE Development Kit (JDK) that you installed as part of setting up your development environment. OpenSSL is available for download from OpenSSL.

      On Windows, you need the following:

      Run the following command in a command prompt in the Java SDK folder. This generates a 28 character string.

      Go to the Facebook Developer site. Log into Facebook and, using the dropdown menu in the top-right, go to Developer Settings:

      In your developer settings, select Sample App from the menu, and add and save your key hash into your profile:

      You can add multiple key hashes if you develop with multiple machines.

      You can now compile and run all of the samples — including those that use Facebook Login.

      Create a Development Key Hash

      Facebook uses the key hash to authenticate interactions between your app and the Facebook app. If you run apps that use Facebook Login, you need to add your Android development key hash to your Facebook developer profile.

      For the version of your app that you release to you also need to generate and set a Release Key Hash.

      On either OS X or Windows you can get a key hash by generating it or by using the value returned by Settings.getApplicationSignature(Context) . For instructions, see Running Sample Apps .

      Create a Release Key Hash

      To authenticate the exchange of information between your app and the Facebook, you need to generate a release key hash and add this to the Android settings within your Facebook App ID. Without this, your Facebook integration may not work properly when you release your app to the store.

      In a previous step, you should have updated your Facebook Developer Settings with the key hashes for your development environments.

      When publishing your app, it is typically signed with a different signature to your development environment. Therefore, you want to make sure you create a Release Key Hash and add this to the Android settings for Facebook App ID.

      To generate a hash of your release key, run the following command on Mac or Windows substituting your release key alias and the path to your keystore.

      On Windows, you need the following:

      Run the following command in a command prompt in the Java SDK folder:

      Make sure to use the password that you set when you first created the release key.

      This command should generate a 28 characher string. Copy and paste this Release Key Hash into your Facebook App ID’s Android settings.

      You should also check that your Facebook App ID’s Android setting also contain the correct package name and main activity class for your Android package.

      Use the Facebook SDK for Android with Maven

      You can declare the Maven dependency with the latest available version of the Facebook SDK for Android.

      Troubleshooting Sample Apps

      If you have a problem running a sample app, it may be related to the key hash. You may see one of the following scenarios:

      • A native Login Dialog appears but after accepting the permissions you are still in a logged out state. The logcat also contains an exception:
      • A non-native Login Dialog appears with an error message: »..App is Misconfigured for facebook login. ».

      Check your key hash and you can make sure you use the correct key hash. I

      You can also manually modify the sample code to use the right key hash. For example in HelloFacebookSampleActivity class make a temporary change to the onCreate() :

      Save your changes and re-run the sample. Check your logcat output for a message similar to this:

      Save the key hash in your developer profile. Re-run the samples and verify that you can log in successfully.

      Источник

      Android faces on facebook

      How to do smile faces on facebook android?

      How to dosmile faces on facebook

      Can you help us by answering one of these related questions?

      We need your help! Please help us improve our content by removing questions that are essentially the same and merging them into this question. Please tell us which questions below are the same as this one:

      Leader Board What’s this?

      Leading Today Pts Helpful
      1. carolpink 200 78%
      2. tony.aiel 200 82%
      3. notorious 200 77%
      4. rjdrink 0 100%
      5. Arbi2k 0 83%
      6. Stephan 0 60%
      7. Jere 0 80%
      Leading this Week Pts Helpful
      1. sanananda 400 100%
      2. jaamunars 400 91%
      3. akosiars 400 88%
      4. tony.aiel 400 82%
      5. mattmcgra 270 100%
      6. RizaReese 200 68%
      7. yrayudu 200 89%
      8. https://w 200 100%
      9. angela.mc 200 100%
      10. jkucera 200 100%
      11. kuramathe 200 82%
      12. rajdprasa 200 88%
      13. katesweet 200 95%
      14. jaquake 200 64%
      15. Divina46 200 100%
      16. janusjero 200 100%
      17. Waallyy 200 67%
      18. carolpink 200 78%
      19. mia.j 200 100%
      20. michelles 200 83%
      Leading this Month Pts Helpful
      1. haize1021 1200 74%
      2. Rickabebs 600 100%
      3. elitehear 600 62%
      4. ceejhey22 600 69%
      5. kentnico3 600 69%
      6. Sk2399816 400 100%
      7. akosiars 400 88%
      8. sanananda 400 100%
      9. katdee04 400 83%
      10. Khalel 400 75%
      11. moussaa 400 100%
      12. nourienfa 400 66%
      13. rushda786 400 100%
      14. Rosal_ang 400 100%
      15. jaamunars 400 91%
      16. heiresska 400 72%
      17. tony.aiel 400 82%
      18. Aeshma 400 77%
      19. mattmcgra 270 100%
      20. davidharr 210 100%
      21. kiksoluti 200 98%
      22. hamishand 200 75%
      23. sharda si 200 96%
      24. sdfgtre 200 100%
      25. cooljwali 200 93%

      Q’S & A’S

      ASKMEFAST ON FACEBOOK

      Like us to stay up to date
      with the AskMeFast community and
      connect with other members.

      LATEST ACTIVITY

      Источник

      Читайте также:  Почему значок загрузки постоянно крутится андроид
Оцените статью