android


Facebook Share dialog not showing the Description


I am unable to find the problem in this code.
I am trying to do Facebook Integration where login is successful but problem comes at sharing time. During share, the dialog box must take the mentioned text and the values of 4 textViews.
Source Code :
pop.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener()
{
#Override
public boolean onMenuItemClick(MenuItem item) {
//Facebook Share
if(item.getItemId()== R.id.facebook) {
{
ShareDialog shareDialog = new ShareDialog(MainActivity.this);
if (ShareDialog.canShow(ShareLinkContent.class)) {
ShareLinkContent content = new ShareLinkContent.Builder(). setContentTitle("Test").
setContentUrl(Uri.parse("http://developers.facebook.com/android")).
setContentDescription(teamA.getText()+ scoreTeamA.getText()+ teamB.getText() + scoreTeamB.getText()).build();
shareDialog.show(content);
}
}
}
From the Share Pop-up Menu, when I click on Facebook it shows the URL context but doesn't show the values of 2-Text Edits and 2-textViews.
Snippet:
Try using: teamA.getText().toString() in setContentDescription()
setContentDescription(teamA.getText().toString()+ scoreTeamA.getText().toString()+
teamB.getText().toString() + scoreTeamB.getText().toString())
Well, when you set Content URL, then facebook doesn't use any images and text or description you set, it actually scrap all the information from that URL and use that instead .. That's why it's happening ..

Related Links

Perfect unique_id for device except IMEI,Android_ID,WLAN Mac and Bluetooth address
I can not get MUPDF to compile in Android Studio. It works fine in Eclipse. NDK ERROR
Is it possible to change the ActionBar Colour in android?
Times-Square and today's date
intersect/collision with bitmap and rectangles
How do I display video once the item is clicked on playlist? Any idea
App that changes estimote beacon uuid, major and minor
Make scrollview in layout (crash)
splash screen is not showing on android
Inconsistent messaging between handler and runnable
Max size image to avoid OutOfMemoryException on Android
Start Activity from BroadcastReceiver only once using locks --Android
How to generate Localizable.strings file from strings.xml in Android
IllegalStateException: Could not execute method of the activity
Parse findInBackground does not work
How to get alertdialg selected item in textview?

Categories

HOME
android
go
fabricjs
prism
ggplot2
apache-jena
twig
pyqt
jmx
mstest
jwplayer
big-o
pattern-matching
owin
gson
watson-conversation
gruntfile
alpacajs
google-data-studio
symfony-console
boost-icl
breadth-first-search
user-experience
mount
onload
fat
android-things
bringtofront
userdefaults
kudu
hibernate-validator
fstream
code-snippets
contacts
modalviewcontroller
lint
graphhopper
android-augmented-reality
nohup
z-notation
projects-and-solutions
comparison-operators
xv6
odoo-website
claims
ssrs-2014
xmldocument
signal-strength
clang++
facebook-social-plugins
x++
phpdbg
jide
magento-2.0.7
wcftestclient
mongotemplate
boxing
lsyncd
cd-burning
rsa-archer-grc
choice
seek
file-uri
watch-os-2
greatest-n-per-group
i386
respondcms
android-wake-lock
angular-ui-typeahead
halcon
concept-insights
qt5.2
wiredep
morton-number
page.js
uncompress
jsvc
telepat
j-security-check
dot.js
gamekit
document-repository
variadic-templates
cosine-similarity
spy++
grails-domain-class
radiant
ie8-compatibility-mode
dtmf
cocoalibspotify-2.0
neos-server
gpars
node-blade
octal
mantle
cardreader
jquery-blockui
failing-tests
floating-point-exceptions
catransform3d
qglwidget
metaweblog
uideviceorientation
appliance

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App