Comments (14)
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.
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.
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.
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?
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?
Thanks,
Alejandro
from socialsharing-phonegap-plugin.
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.
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.
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.
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.
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.
Hi Eddy,
Is there any way to share the message directly to Facebook Messenger?
from socialsharing-phonegap-plugin.
Hi Eddy,
Is there any way to share the message directly to Facebook Messenger?
from socialsharing-phonegap-plugin.
@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.
@samuelralak Is it working in ios?
from socialsharing-phonegap-plugin.
@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)
- app crash on share HOT 5
- Sharing message in message in IOS
- Sharing base64 encoded text/csv files fails on newer Android versions HOT 2
- bh.sh
- bh.sh
- Issue with IOS Social Sharing in ios 15
- screen frozen after share via facebook HOT 2
- Intent Redirection Vulnerability
- Share blob or base64 encoded image HOT 1
- Android 13 devices error on share with Twitter or Facebook HOT 6
- Android 12 issue HOT 4
- YouTube not supported as a valid app in iOS Share Sheet?
- App close after share whatsapp last version android
- Preview not available on Facebook share
- Instagram Story
- Can webp format files be saved
- ios 15 and 16 share file problem
- Crash on calling canShareVia -[SocialSharing canShareVia:] on IOS device
- Android app crashed when share through email HOT 7
- IOS trouble on sharing to Facebook and Instagram. HOT 1
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 socialsharing-phonegap-plugin.