sp-dev-fx-webparts/samples/react-facebook-plugin
Hugo Bernier 810a68ebee Updated contributors for readmes 2023-03-15 00:11:27 -04:00
..
.devcontainer Added all 1.12.1 and 1.13 containers 2022-02-14 02:52:18 -05:00
.vscode
assets Changed docs links to learn 2022-10-24 09:42:45 -04:00
config
src
teams
.editorconfig
.gitignore
.yo-rc.json
README.md Updated contributors for readmes 2023-03-15 00:11:27 -04:00
gulpfile.js
package-lock.json
package.json
tsconfig.json
tslint.json

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

⚠️ Important
Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.
Refer to https://aka.ms/spfx-matrix for more information on SPFx compatibility.

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

Applies to

Contributors

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

This sample can also be opened with VS Code Remote Development. Visit https://aka.ms/spfx-devcontainer for further instructions.

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.