Sharing functionality issue for FaceBook app using Delphi 10.1 Berlin

孤街浪徒 提交于 2019-12-25 07:48:30

问题


I'm using Delphi 10.1 Berlin for developing android apps and for this I have tried to implement sharing functionality using the following code:

procedure TBaseForm.ShareDataInAndroid;
var
  Intent: JIntent;
begin
  try
    Intent := TJIntent.Create;
    Intent.setType(StringToJString('text/plain'));
    Intent.setAction(TJIntent.JavaClass.ACTION_SEND);
    Intent.putExtra(TJIntent.JavaClass.EXTRA_TEXT, StringToJString('Delphi Rocks!!!'));
    MainActivity.startActivity(Intent);
  finally
  end;
end;

But the text Delphi Rocks!!! text is shared in all other apps but it is not getting added in facebook app. And please help me to fix this issue.

Also I have tried with the TShowShareSheetAction action event and this facebook occurs.

Thanks in advance.

来源:https://stackoverflow.com/questions/41670287/sharing-functionality-issue-for-facebook-app-using-delphi-10-1-berlin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!