Comments (4)
@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.
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:
- When pressing y on both read & write permission popups it get's published right away
- 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.
Hi @matie ,
I made the next flow right now within sample app:
- Login -> accepted the read permissions, declined the publish permission.
- press on "Publish feed" -> dialog with publish permission is shown, and I declined it.
- 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.
- Is this, the same flow, works for you?
- What is the
reason
value do you get inonFail(String reason)
callback?
Thanks
from android-simple-facebook.
@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.
onNotAcceptingPermissions()
was changed toonNotAcceptingPermissions(Permission.Type type)
. TheType
holdsREAD
andPUBLISH
values.- And, read more about new options here: https://github.com/sromku/android-simple-facebook#permissions
from android-simple-facebook.
Related Issues (20)
- getPhotos() returning 0 always
- Crash reported in google play
- Image feed size
- SSL Handshake Exception OnProfileListener
- Publish feed with dialog: sometimes opens dialog, sometimes not
- Get Response Object after publish
- Get events information
- Mutual friends
- Album Responding Only 3 values in simple-fb:4.1.1.
- not getting the Friends Requests
- Argument 'activity' cannot be null
- Posting to pages HOT 2
- AutoFirma no abre en Edge
- Cant get data from Post HOT 2
- apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
- Message text for the feed is not getting displayed on the post
- Configuration Error After Upgrade Firebase Version HOT 5
- Some of the album methods like getCount(), getCoverPhotoIs() are not working, can anyone help me with this, why is it so
- GetPhotos not working
- Photo instance is null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-simple-facebook.