Suleiman

Product Designer who occasionally writes code.

You may also like...

23 Responses

  1. Namsi Abdelkhalek says:

    the dashboard doesn’t contain settings!!

    • Suleiman19 says:

      Hi Namsi,
      Parse has unfortunately decided to shut down. They no longer provide a self-hosting option. But they still allow you to self host the software.
      As a result, the Parse dashboard has changed too. The Settings you ask for defining for Facebook constants, now reside in a config file.
      Here’s a guide that can quickly show you how to deploy Parse locally: https://github.com/ParsePlatform/parse-server
      Good luck!

      • Namsi Abdelkhalek says:

        It worked well without doing that step.
        Thank you very much. This was so helpful 🙂

  2. Utkersh Reuben Khanna says:

    Always Getting “Uh oh. The user cancelled the Facebook login.”

  3. John says:

    Hi Suleiman19, thanks for writing this up! I have follow the steps listed, and I have been running into a different error. My app crashes with this error:

    java.lang.NoClassDefFoundError: com.parse.ParseFacebookUtils$1

    at the ParseFacebookUtils.initialize(this) line. I have read that this has been a problem for others occasionally, but have found no good solutions that work. From what I can understand, simply it is because my compiler can’t find some file that contains a class, but I’m not sure how to find it if I’ve imported the proper libraries and declared all of the necessary dependencies in my Gradle build. If you’ve run into this or had to fix it please let me know. Thanks!

    • Suleiman19 says:

      Hi John,
      I recently updated the Parse tutorials. Migrated to gradle from JAR files and faced no such issues.
      I suggest you refer to my GitHub repository to cross check where your issue might be.
      Link available in part 2 end.

  4. Boon Yao says:

    Hi suleiman19, I face problem here. Can i ask my problem here?

    I stuck at getting key hash with your code provided.
    The line ” md.update(signature.toByteArray()); has red line error.

    Error:(33, 36) error: cannot find symbol method toByteArray()

    Can you kindly give a help here? thanks in advance. 🙂

  5. Michael Lorenz Jimenez- Labrad says:

    thank you for posting this!

  6. Z says:

    Hi, I followed all your instructions but got this:

    Error:Execution failed for task ‘:app:dexDebug’.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java” finished with non-zero exit value 2

    Would you be able to give some pointers as to what is the error i have made?
    Thanks!

    • Suleiman19 says:

      Hi there,

      This kind of error happens when you’ve included a library more than once. Please recheck any duplicate Jars or libraries in your build.gradle file.

      Here’s a similar problem on StackOverflow. Should help you: http://stackoverflow.com/questions/28917696/errorexecution-failed-for-task-appdexdebug-com-android-ide-common-process

      • Z says:

        I am looking at the instructions on https://www.parse.com/docs/android/guide#users-setup

        In step 4, it talks about this problem:

        Add com.parse:parsefacebookutils-v4-android:1.10.3@aar to your Gradle dependencies. This includes the contents of the Parse-*.jar and the com.parse:parse-android:1.10.+ repository, so be sure to remove as needed to prevent duplicate dependencies, otherwise acom.android.dex.DexException will be thrown.

        Do you mind explaining what they mean by com.parse:parsefacebookutils-v4-android:1.10.3@aar includes the contents of the Parse-*.jar and the com.parse:parse-android:1.10.+ repository?

        Thanks!

      • Suleiman19 says:

        It simply says what I said earlier. Remove duplicate library imports.

        If you add com.parse:parsefacebookutils-v4-android:1.10.3@aar,

        then remove all Parse related .jars and the com.parse:parse-android import as well.

      • Z says:

        I see. It was fine after I changed the dependencies to the following:

        dependencies {
        compile fileTree(dir: ‘libs’, include: [‘*.jar’])
        testCompile ‘junit:junit:4.12’
        compile ‘com.android.support:appcompat-v7:23.0.1’
        compile ‘com.parse.bolts:bolts-android:1.2.0’
        compile ‘com.facebook.android:facebook-android-sdk:4.2.0’
        }

        However, I tried to do the same thing using the Twitter login for Parse and it doesn’t work, even though the instructions are similar (https://www.parse.com/docs/android/guide#users-setup):

        dependencies {
        compile fileTree(dir: ‘libs’, include: [‘*.jar’])
        testCompile ‘junit:junit:4.12’
        compile ‘com.android.support:appcompat-v7:23.0.1’
        compile ‘com.parse.bolts:bolts-android:1.2.0’
        compile ‘com.parse:parsetwitterutils-android:1.10.+’
        }

        Would you mind enlightening me on what I have done wrong? Thanks!

      • Suleiman19 says:

        I don’t understand what you’re trying to do here. Are you trying to user Twitter AND Facebook? Why are there 2 dependencies tags?
        My only suggestion to you would be to either ask Parse directly asking about Twitter + Facebook integration, or post on StackOverflow.

  7. Radzhab Ahvahsky says:

  8. Radzhab Ahvahsky says:

    Suleiman, good day. I cannot find post where you describe https://github.com/Suleiman19/cheesesquare this project.

    I have one question. I add 4 elements to adapter(pic 1). I want rise method ClickMe in third instance of CheeseListFragment from MainActivity. How i make it?

Leave a Reply

Your email address will not be published. Required fields are marked *