Can we extract/read the posts and comments from groups, which I am not owning on Facebook using Facebook4j or by some other API or method?
Check if group's privacy setting is OPEN.
Using getGroupFeed(String groupId), you could get the group's wall.
Once you are aware of groupId and that particular group is OPEN, I guess you could extract posts from that group.
Please check Facebook4j's documentation : Groups Interface in Facebook4j
Also, check Reference docs in Facebook developers regarding access token for groups here.
Hope it helps
Related
What should I use instead of ContactsContract.Contacts.LAST_TIME_CONTACTED? According to documentation, LAST_TIME_CONTACTED variable was deprecated. Even it was written in ContactsContract.class
/** #deprecated */
#Deprecated
String LAST_TIME_CONTACTED = "last_time_contacted";
Since it was deprecated then there must be another alternative. But why there's no alternative? Or why the documentation didn't link any alternative?
This constant was deprecated in API level 29.
Contacts affinity information is no longer supported as of Android version Build.VERSION_CODES.Q. This column always contains 0.
In Android Q or higher version, there's no alternative variable either?
There's no alternative - and it's intentional.
Google no longer wants developers with Contacts permission to be able to get access to data related to communication between the user and their contacts.
If you app is eligible to get the CALL_LOG or SMS permissions you can figure out the last contacted timestamp based on the call log / messaging history.
But these permissions are not allowed in Google Play unless your app is of a very specific use-case documented here.
The method "noteStore.listTags" returns all tags, including deleted tags from an Evernote Sandbox account. But in API Reference it is said that: "only include active tags". Environment: Java, evernote-api 1.25.1.
1) In my case I need it to return only active tags. Can it be fixed?
2) Does this issue occur only in sandbox or is it happening with premium accounts too? I don't have a premium account, so I can't check.
Environment: Java, evernote-api 1.25.1.
The tags you're talking about aren't actually deleted. In the tags drawer in the web UI, we hide any tags that aren't attached to any notes, so although they get returned by NoteStore.listTags, they aren't shown. We use NoteStore.findNoteCounts to figure out how many notes each tag is attached to. There is currently no way using the web UI to delete tags - you can do that via NoteStore.expungeTag if you need to.
I did oauth2 authorisation on some site. This is classical way with WebView and page there, where user adds password and login, presses Allow button etc. Then it gets refresh_token and by another POST message gets auth_token, which I have to store (in AccountManager) and user later.
Can I do this with the help of AccountManager? How can I do this?
I wonder if user should enter a login and password twice - one for account manager (when I should create it), and other in WebView form?
I just need to use AccountManager in order to sync data lately.
Don't know if you still looking for a solution on this.
Short answer it's yes u can this example may give you the inspiration you need : https://github.com/learning-layers/android-openid-connect It goes a little futher supporting OIDC workflow.
The author is working on a lib maybe it's worth looking for this release.
I am a beginner in the world of ACL coding.I have no prior knowledge of filters and other concepts and cannot learn that because of time constraints.So I found an alternative way to implement ACL.
I have only 3 users suppose user,admin and sys.
So I just create jsp pages starting with the respective user types and the name of the page.
eg:- "userCheckStatus.jsp" and "sysCreateUser.jsp"
And then i check whether the usertype which is stored in the session matches with the respective page the user is trying to access. I just want to know that is this a good practise and will it provide me with the thing which I am trying to achieve. If not then what is lacking in the above method and please advise me for the same.
Thanks in advance!!!
Your approach may work. One drawback is if you change your mind and you will want to give access rights to another user or introduce new role, you will have to rewrite it completely. For example you will have to find all references to that jsp and fix the links. If user bookmarked the jsp, it will be not found anymore. Some kind of indirection (mapping access to jsp in configuration file) would be better.
Standard servlet security is not so hard to try. See Oracle documentation. The good news is that servlet API has direct support for it.
I'm using JAAS and have applied security on some folders for different roles. I want to hide some navigation for different users because, although the pages are not accessible, the user can still see the links that he has no rights on? What's the simple way to achieve this in JSF? Do I need to call a method to check the role in the "rendered" property of each navigation link? Any sample code? Please help!
Use rendered for view, take
rendered="#{userBean.role =='ADMIN'}"
also configure filter or use Spring security's filter to restrict them to access the URL
The corrent answer is here, may be helpful for someone else: Is "isUserInRole" method related to JAAS?