shareFeedContentToFacebook method

Future shareFeedContentToFacebook({
  1. String? link,
  2. String? pageId,
  3. String? ref,
  4. List<String>? peopleIds,
  5. String? placeId,
  6. String? hashtag,
  7. String? quote,
  8. String? linkCaption,
  9. String? linkName,
  10. String? linkDescription,
  11. String? mediaSource,
  12. String? picture,
  13. String? toId,
})

Share a content to your Facebook feed method. You can provide a link (link) of the content you want to share

There are some other properties pageId, peopleIds, hashtag, etc. The properties linkCaption, linkName, linkDescription, mediaSource, picture, and toId are available on Android platform

quote property is use for iOS platform.

Working on: Android and iOS platforms.

Implementation

Future<dynamic> shareFeedContentToFacebook({
  String? link,
  String? pageId,
  String? ref,
  List<String>? peopleIds,
  String? placeId,
  String? hashtag,
  String? quote,
  String? linkCaption,
  String? linkName,
  String? linkDescription,
  String? mediaSource,
  String? picture,
  String? toId,
}) async {
  return _channel.invokeMethod(
    'shareFeedContentFacebook',
    <String, dynamic>{
      'link': link,
      'pageId': pageId,
      'ref': ref,
      'peopleIds': peopleIds,
      'placeId': placeId,
      'hashtag': hashtag,
      'linkCaption': linkCaption,
      'linkName': linkName,
      'linkDescription': linkDescription,
      'mediaSource': mediaSource,
      'picture': picture,
      'toId': toId,
      'quote': quote,
    },
  );
}