Giter VIP home page Giter VIP logo

Comments (4)

sromku avatar sromku commented on August 22, 2024

@matie, The implemtation of library does as follow: if user didn't accept PUBLISH permissions, then it is still OK. Why? because, once the user make some publish action, the library checks if PUBLISH permissions were accepted, if not then the dialog will be shown again to the user and once he accepts, the publishing action will complete. Thus, I didn't add callback method for not accepting publish permissions, because it shouldn't break the flow.

But I can understand the need for statistics or maybe something else for knowing if user accepted or not. I will follow your suggestion in issue #35 and return another callback method.

Thanks!

from android-simple-facebook.

matie avatar matie commented on August 22, 2024

Hi,

Not just for statistics and asking the user again for publishing.
Maybe I'm doing something wrong but,

Feed feed = new Feed.Builder()

       //.setMessage("Bericht boven het kader...")
        .setName( appName )
        .setCaption( caption )
        .setDescription( description )
        .setPicture( imgUrl )
        .setLink( linkUrl )
        .build();

    // publish the feed
    mSimpleFacebook.publish(feed, onPublishListener);

When publishing something for the first time:

  1. When pressing y on both read & write permission popups it get's published right away
  2. When pressing no at the write permission popup and the user starts publishing again, the popup appears. but after pressing yes, then it doesn't get published.

ad1; This will trigger the onFail method within the publish listener.
ad2; This does exactly the same as when granted all permissions (without the onFail method), except it will not publish after granting the write permissions.

hope it helps.

regards,
Mathijs/

from android-simple-facebook.

sromku avatar sromku commented on August 22, 2024

Hi @matie ,

I made the next flow right now within sample app:

  1. Login -> accepted the read permissions, declined the publish permission.
  2. press on "Publish feed" -> dialog with publish permission is shown, and I declined it.
  3. press again on "Publish feed" -> dialog with publish permission is shown, and I accepted this time.

The result: the feed was published on my wall.

  1. Is this, the same flow, works for you?
  2. What is the reason value do you get in onFail(String reason) callback?

Thanks

from android-simple-facebook.

sromku avatar sromku commented on August 22, 2024

@matie, a major update was made to the library and these are general notes: #103

Now, you can know exactly which permissions user didn't accept, which permission user granted and you can ask for new permissions in runtime.

from android-simple-facebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.