sp-dev-fx-webparts/samples/react-facebook-plugin
Hugo Bernier eb8bd92a0b Updating telemetry link 2021-12-20 10:25:30 -05:00
..
.vscode Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
assets Removing unnecessary office product from the sample metadata 2021-12-10 19:55:32 +02:00
config Remove unused tslint 2021-07-10 07:20:07 +07:00
src Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
teams Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
.editorconfig Facebook Page Social Plugin web part sample (#607) 2018-09-10 13:11:45 +03:00
.gitignore Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
.yo-rc.json Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
README.md Updating telemetry link 2021-12-20 10:25:30 -05:00
gulpfile.js Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
package-lock.json Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
package.json Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
tsconfig.json Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00
tslint.json Upgrade to SPFx 1.12.1 2021-07-09 20:38:05 +07:00

README.md

Facebook Page Social Plugin

Summary

This sample shows how to implement iFrame-based web parts with a dynamic responsive behavior on the example of Facebook Page Social Plugin.

The key differences between using Embed web part and current example are the strong parametrization of web part properties and responsive behavior of the iFrame depending on parent container width changes.

preview

Compatibility

SPFx 1.12.1 Node.js v14 | v12 | v10 SharePoint Online Teams N/A: Untested with Microsoft Teams Workbench Local | Hosted

Applies to

Solution

Solution Author(s)
react-facebook-plugin Andrew Koltyakov (@AndrewKoltyakov)
react-facebook-plugin Ari Gunawan (@AriGunawan3023)

Version history

Version Date Comments
1.0 August 26, 2018 Initial release
1.1 July 9, 2021 Upgrade to SPFx 1.12.1

Minimal Path to Awesome

  • Clone the repository
  • cd to web part's project folder
  • In the command line run:
    • npm install
    • gulp serve

Features

This web part illustrates the following concepts on top of the SharePoint Framework:

  • Observe parent container width and dynamic adaptation of absolute-width'ed HTML elements
  • React

Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

If you encounter any issues while using this sample, create a new issue.

For questions regarding this sample, create a new question.

Finally, if you have an idea for improvement, make a suggestion.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.