{"id":4784,"url":"https://github.com/syarul/react-native-fbintent","last_synced_at":"2025-06-25T08:04:59.013Z","repository":{"id":57336941,"uuid":"45431796","full_name":"syarul/react-native-fbintent","owner":"syarul","description":"A React Native intent for Android Facebook App","archived":false,"fork":false,"pushed_at":"2015-11-03T01:00:51.000Z","size":144,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T11:24:04.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syarul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-03T00:45:13.000Z","updated_at":"2022-02-25T09:11:20.000Z","dependencies_parsed_at":"2022-09-11T12:31:35.612Z","dependency_job_id":null,"html_url":"https://github.com/syarul/react-native-fbintent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/syarul/react-native-fbintent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Freact-native-fbintent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Freact-native-fbintent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Freact-native-fbintent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Freact-native-fbintent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syarul","download_url":"https://codeload.github.com/syarul/react-native-fbintent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Freact-native-fbintent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261221241,"owners_count":23126888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:17:23.257Z","updated_at":"2025-06-25T08:04:58.988Z","avatar_url":"https://github.com/syarul.png","language":"Java","readme":"# react-native-mapintent\n\nA React Native intent for Android Facebook App.\n\n### Installation\n\n```bash\nnpm install --save react-native-fbintent\n```\n\n### Add it to your android project\n\n* In `android/setting.gradle`\n\n```gradle\n...\ninclude ':RNFbIntent', ':app'\nproject(':RNFbIntent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbintent')\n```\n\n* In `android/app/build.gradle`\n\n```gradle\n...\ndependencies {\n    ...\n    compile project(':RNFbIntent')\n}\n```\n\n* register module (in MainActivity.java)\n\n```java\nimport com.syarul.fbintent.RNFbIntentPackage;  // \u003c--- import\n\npublic class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {\n  ......\n\n  @Override\n  protected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    mReactRootView = new ReactRootView(this);\n\n    mReactInstanceManager = ReactInstanceManager.builder()\n      .setApplication(getApplication())\n      .setBundleAssetName(\"index.android.bundle\")\n      .setJSMainModuleName(\"index.android\")\n      .addPackage(new MainReactPackage())\n      .addPackage(new RNFbIntentPackage())              // \u003c------ add here\n      .setUseDeveloperSupport(BuildConfig.DEBUG)\n      .setInitialLifecycleState(LifecycleState.RESUMED)\n      .build();\n\n    mReactRootView.startReactApplication(mReactInstanceManager, \"ExampleRN\", null);\n\n    setContentView(mReactRootView);\n  }\n\n  ......\n\n}\n```\n\n## Example\n\nFbIntent.open(facebook_page_id)\n\n* **facebook_page_id:** *(string)* facebook page id, use [http://findmyfbid.com/](http://findmyfbid.com/) to find the id of a page. If user does not install facebook app it will open facebook page in the browser.\n\nExample:\n\n```javascript\nvar FbIntent = require('react-native-fbintent');\n\nFbIntent.open('461828740557560');\n```\n## License\n\nMIT\n","funding_links":[],"categories":["Components"],"sub_categories":["Integrations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyarul%2Freact-native-fbintent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyarul%2Freact-native-fbintent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyarul%2Freact-native-fbintent/lists"}