Hi all. This is intent to share to Facebook.
Code:
This is result smarthphone when you click button "Share to FB":
and this is result:
Example in attachment.
Bye
Code:
B4X:
'App ID Facebook
Dim app_id As String = "1541645*******" ' <--- Here put your ID Facebook
Dim redirect_uri As String = "https://www.facebook.com"
Dim name, caption, description, picture, link, all As String
link = "https://play.google.com/store/apps/details?id=com.devil.app.barzellette"
name = "App Barzelletta"
caption = "************"
description = "This is description also long ...we see Lorem ipsum dolor sit amet," & _
"test link adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus." & _
"Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec," & _
"gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo," & _
"eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy." & _
"Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat In, nunc. Morbi imperdiet augue quis tellus."
all = "https://www.facebook.com/dialog/feed?app_id=" & app_id _
& "&link=" & link _
& "&name=" & name _
& "&caption=" & caption _
& "&description=" & description _
& "&redirect_uri=" & redirect_uri
Dim i As Intent
i.Initialize(i.ACTION_VIEW, all)
i.SetType("text/plain")
i.PutExtra("android.intent.extra.TEXT", all)
StartActivity(i)
This is result smarthphone when you click button "Share to FB":
and this is result:
Example in attachment.
Bye