79147673

Date: 2024-11-01 10:36:21
Score: 0.5
Natty:
Report link

before this you have get permission access from facebook by using below code :

try {
      const result = await LoginManager.logInWithPermissions([
        'user_photos',
        'user_videos',
      ]);

      if (result.isCancelled) {
        dispatch({ type: 'notGranted' });
        console.log('Permission request cancelled');
      } else {
        const data = await AccessToken.getCurrentAccessToken();
        console.log('Permission request granted', data);
        iscliked.current = true
        dispatch({ type: 'Granted' });
      }
    } catch (error) {
      dispatch({ type: 'notGranted' });
      console.error('Error requesting permissions:', error);
    }

after that you can share post publicly and all the world can see your post

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ibad Ur Raheem