Giter Site home page Giter Site logo

Comments (14)

EddyVerbruggen avatar EddyVerbruggen commented on August 20, 2024

Hi,

I think you are only refering to Facebook on Android. That's the only thing you can't share text to. It's a limitation of Facebook (a choice by them really), not something this plugin can do anything about. Sorry.

If you really need this feature, you should look at deeper integration with Facebook, like the FacebookConnect plugin.

Best regards,
Eddy

from socialsharing-phonegap-plugin.

alejandrocao avatar alejandrocao commented on August 20, 2024

If I try shareVia using 'facebook' parameter, opens Facebook Messenger and not Facebook App. Is the same as ShareViaFacebook method. How can I directly open Facebook app?
I know that I only could share link and image, is terrible, but can I change the link title? or facebook takes it from the page title?

I tried to use Facebook Connect Plugin but the interface that displays when trying to make a post is not the facebook android application. I feel much better with Social Share Plugin because it opens the facebook application itself.

Thanks,
Alejandro.

from socialsharing-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 20, 2024

Hi Alejandro,

Hmm, can you try shareVia('com.facebook.katana', ...) ?
If that works, I will definitely change the implementation of shareViaFacebook.

Thanks for testing this with me,
Eddy

from socialsharing-phonegap-plugin.

alejandrocao avatar alejandrocao commented on August 20, 2024

Hi Eddy,

I am testing your suggestion.

When I use the following method:

<a onclick="window.plugins.socialsharing.shareVia('com.facebook.katana','TabladosUy', null, 'http://www.tabladosuy.com.uy')"><img src="images/facebook.png" height="32px"/></a>

Facebook application opens but without text nor link. What's wrong?

screenshot_2014-02-26-22-22-26

When I use the following method and select the Facebook application to share:

<a onclick="window.plugins.socialsharing.share('TabladosUy', 'The subject', null, 'http://www.tabladosuy.com.uy')"><img src="images/share.png" height="32px"/></a>

Facebook application opens, and only shows the link. Is posible to change the tilte and image of the link?

screenshot_2014-02-26-22-22-53

Thanks,
Alejandro

from socialsharing-phonegap-plugin.

alejandrocao avatar alejandrocao commented on August 20, 2024

Hi Eddy,

It works, I had an error when invoking the "shareVia" function, a parameter was missing.
I should call the function in the following way:

<a onclick="window.plugins.socialsharing.shareVia('com.facebook.katana','TabladosUy', 'The subject', null, 'http://www.tabladosuy.com.uy')"><img src="images/facebook.png" height="32px"/></a>

The question now is, is it possible to change the title and the image of the link to share?

Thanks,
Alejandro

from socialsharing-phonegap-plugin.

alejandrocao avatar alejandrocao commented on August 20, 2024

It works, I had an error when invoking the "shareVia" function, a parameter was missing.
I should call the function in the following way:

<a onclick="window.plugins.socialsharing.shareVia('com.facebook.katana','TabladosUy', 'The subject', null, 'http://www.tabladosuy.com.uy')"><img src="images/facebook.png" height="32px"/></a>

The question now is, is it possible to change the title and the image of the link to share?

Thanks,
Alejandro

from socialsharing-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 20, 2024

Hi Alejandro,

Thanks for testing the 'com.facebook.katana' package name. I have changed the shareViaFacebook method accordingly.

About your subject: the subject is only for Email sharing (maybe for other apps on Facebook, but it depends on whether or not the receiving app uses the 'subject' field).

About the image: Facebook looks at the page (link) you are sharing and uses black magic to determine what the accompanying image for the link is. This can't be influenced by the plugin or any other app for that matter.

from socialsharing-phonegap-plugin.

alejandrocao avatar alejandrocao commented on August 20, 2024

Hi Eddy,

I was researching how does Facebook to assign the images, descriptions and other attributes of the shared links. Apparently uses a protocol called Open Graph, which extracts the meta tags defined on the page to share.

Example:

`<html xmlns:fb="http://ogp.me/ns/fb#>

`

To check the configuration of a site you can use the following Facebook developer tool:

https://developers.facebook.com/tools/debug/

It's amazing that Facebook does not want to correct the implementation of its Intent. It is a bug. By not allowing sharing text, makes the Android platform is inconsistent.

https://developers.facebook.com/x/bugs/332619626816423/

Thanks,
Alejandro

from socialsharing-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on August 20, 2024

Yeah, it's silly and they won't change the behaviour regarding text sharing.

Thanks for the hint about OG! So I guess users can add a meta tag to their site to instruct FB what image to use when the site is shared. Nice :)

from socialsharing-phonegap-plugin.

mutkumar avatar mutkumar commented on August 20, 2024

Hi Eddy,
Is there any way to share the message directly to Facebook Messenger?

from socialsharing-phonegap-plugin.

Muthukumar28041990 avatar Muthukumar28041990 commented on August 20, 2024

Hi Eddy,
Is there any way to share the message directly to Facebook Messenger?

from socialsharing-phonegap-plugin.

samuelralak avatar samuelralak commented on August 20, 2024

@Muthukumar28041990 and @mutkumar the following piece of code worked for me:

window.plugins.socialsharing.shareVia(
  'com.facebook.orca',  'Awesome message', null, null, null, function(){
    console.log('share ok')
  }, function(msg) {
    alert('error: ' + msg)
});

from socialsharing-phonegap-plugin.

muhsin-k avatar muhsin-k commented on August 20, 2024

@samuelralak Is it working in ios?

from socialsharing-phonegap-plugin.

samuelralak avatar samuelralak commented on August 20, 2024

@muhzi4u I haven't tried it out on iOS so am not sure. I would advise that you find out how the Facebook Messenger package is named on iOS; if its the same then it should work, if not then try replacing com.facebook.orca with the package name provided for Facebook Messenger in iOS.

from socialsharing-phonegap-plugin.

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.