GithubHelp home page GithubHelp logo

Comments (6)

danielwilson1702 avatar danielwilson1702 commented on June 27, 2024

The same thing happens to me, same thing with posting photos to FB, this is all I've tried though :(

from androidsocialnetworks.

gorbin avatar gorbin commented on June 27, 2024

Yes there is a problem with old facebook sdk, I solved it and make pull requests tommorow or at weekands.

If you need it right now - you can try my extension for this lib
https://github.com/gorbin/ASNE

as I said all changes I'll pull as soon as posible

from androidsocialnetworks.

gorbin avatar gorbin commented on June 27, 2024

I made pull request, and here some info:

firstly, to post and corect work with facebook you need to setup fb app correctly:

for example, you can add your app to check share posibilities:

  1. create your app in facebook
  2. add android platform
  3. enable your app in review-status
  4. in \api_demos\src\main\res\values\congig.xml setup your appId

p.s. this error may corrupt becouse FB update their api and stay old apps work as they work, and new work by new rules
It would be great if @antonkrasov update fb app(just create new one) to resolve all errors which may occur old/new api. now api-demo use old fbapp

from androidsocialnetworks.

gorbin avatar gorbin commented on June 27, 2024

Finally I found what happens.
Facebook policy changed when they updates to Login Api, now to get publish permission facebook App should be reviewed to get publish action permissions, but they didn't review small "test" apps, for them they give another opportunity - roles in facebook app
So, all users who are not testers/developers of facebook app didn't see and can't confirm publish permission(its need to make make post, photo, links) - but administrator can add anybody as tester, he ned just add id, then requester should confirm in his facebook dev account, that he is tester - after it he got all necessary permissions

look to red alert box
screenshot 10

Roles in app
screenshot 11

Confirm request
screenshot 12

Or we got alternative - dialog, which dont need publish permission
screenshot 14

I add it as soon as possible, I can add dialogs only to G+ and FB

from androidsocialnetworks.

mclovin-2k avatar mclovin-2k commented on June 27, 2024

@gorbin
The following code snip shows how to post to twitter app's dialog.

Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_TEXT, "some message");
intent.setType("text/plain");
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
intent.setComponent(new ComponentName("com.twitter.android", "com.twitter.android.composer.ComposerActivity"));
try {
startActivityForResult(intent, REQUEST_CODE_POST);
} catch (ActivityNotFoundException e) {
//Can't found Twitter App
}

from androidsocialnetworks.

gorbin avatar gorbin commented on June 27, 2024

@dna1982
Tnx, I'll try it, but it works only if user got twitter app, else need to create custom dialog - dont want to create my custom dialog(security etc.)

my custom fork with 2 russian social networks(sorry for russian) - https://github.com/gorbin/ASNE
check dialogs here...

from androidsocialnetworks.

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.